It's common practice to mutate the parameters in JS. But there are some good reasons not do to. And ways how to do it better.
Javascript passes object to a function by Call by sharing. Can be said to pass by copy of reference.
It's common practice to mutate the parameters in JS. But there are some good reasons not do to. And ways how to do it better.
Javascript passes object to a function by Call by sharing. Can be said to pass by copy of reference.
const firebase = require('firebase-admin'); | |
var serviceAccountSource = require("./source.json"); // source DB key | |
var serviceAccountDestination = require("./destination.json"); // destiny DB key | |
const sourceAdmin = firebase.initializeApp({ | |
credential: firebase.credential.cert(serviceAccountSource) | |
}); | |
const destinyAdmin = firebase.initializeApp({ |