map async
Updated on August 22, 2024Source codeTests
createMapAsync
is a pipe that asynchronously transforms an array to a mapped array.
Create map
Call createMapAsync
with these parameters to create your map
function:
Parameter
Type
Required
Description
transform
Function
yes
A function that returns a Promise
that resolves to the transformed item.
transform
receives an item (any data type) and the item's index (number) as parameters.