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