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 each item sequentially, waiting for the promise returned by the callback to resolve before moving on to the next item.
*
* @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