@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
8 lines • 344 B
TypeScript
/**
* Maps an Array<Item_Type> to an Array<Result_Type>, one element at a time.
*
* @param items
* @param mappingFunction
*/
export declare function asyncMap<Item_Type, Result_Type>(items: Item_Type[], mappingFunction: (item: Item_Type) => Promise<Result_Type> | Result_Type): Promise<Result_Type[]>;
//# sourceMappingURL=asyncMap.d.ts.map