How can I get specific document data from firestore querysnapshot?
问题 I got a querysnapshot in a function. And want to bring the whole querysnapshot to another function (functionTwo). In functionTwo, I want to get a specific document in the querysnapshot WITHOUT forEach. The specific doc can be changed by different case. ref_serial_setting.get() .then(querysnapshot => { return functionTwo(querysnapshot) }) .catch(err => { console.log('Error getting documents', err) }) let functionTwo = (querysnapshot) => { // getting value const dataKey_1 = "dataKey_1" // Tried