firebase.apps.length code example Example: firebase.apps.length if (firebase.apps.length === 0) { firebase.initializeApp({}); }