docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A utility that processes multiple asynchronous operations and provides detailed reporting of their outcomes, handling various input types gracefully.
Build a function that accepts an array of async operations (promises and/or plain values) and returns a promise that resolves to an array of result objects.
Each result object must contain:
status field: either 'fulfilled' or 'rejected'value field with the resultreason field with the errorImportant behavior:
/**
* Processes multiple async operations and returns their results
* @param {Iterable} operations - Collection of promises and/or values
* @returns {Promise<Array>} Promise resolving to array of result objects
*/
function aggregateResults(operations) {
// Implementation here
}
module.exports = { aggregateResults };Provides promise settlement tracking functionality.