UseMapAsync
katanakit-js / useMapAsync
Function: useMapAsync()
Section titled “Function: useMapAsync()”function useMapAsync<T, U>(array, transform): Promise<U[]>;Defined in: core/services/array.service.ts:553
Async map, in parallel. See ArrayService.useMapAsync.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
U |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
array |
NullableArray<T> |
transform |
(item, index) => Promise<U> |
Returns
Section titled “Returns”Promise<U[]>