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
xdash / map
map<
T,U>(arr,fn):U[]
Maps an array of values to an array of results of the callback.
• T
• U
• arr: T[]
array to map
• fn
callback to map the array
U[]
the mapped array