xdash / map
Function: map()
map<
T
,U
>(arr
,fn
):U
[]
Maps an array of values to an array of results of the callback.
Type parameters
• T
• U
Parameters
• arr: T
[]
array to map
• fn
callback to map the array
Returns
U
[]
the mapped array