Fri Oct 13 2023 07:31:28 GMT+0000 (Coordinated Universal Time)
Saved by @vishalbhan
// Helper: Reads an array of IDs from a collection concurrently const readIds = async (collection, ids) => { const reads = ids.map(id => collection.doc(id).get() ); const result = await Promise.all(reads); return result.map(v => v.data()); }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments