You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A utility function that maps an array of items to an array of results using an asynchronous callback function. It processes all items in parallel, returning a promise that resolves when all the promises returned by the callback have resolved.
*
* @template T, U
* @param {Array<T>} array An array of items to map
* @param {(item: T, index: number, array: Array<T>) => Promise<U>} callback An async function to apply to each item
* @returns {Promise<Array<U>>} A promise that resolves to an array of the mapped results