- promiseMap(values, onValue, onError?): Promise<any>
Parameters
- values: any[]
- onValue: ((value) => Promise<unknown>)
- (value): Promise<unknown>
Returns Promise<unknown>
- onError: ((error?, value?, index?) => void) = noop
- (error?, value?, index?): void
Parameters
Optional
error: unknownOptional
value: unknownOptional
index: number
Returns void
Returns Promise<any>
Creates promises of a list of values. Resolves all promises and returns an array of resolved values.