Appearance
Function: array_map()
array_map<
T,U>(callback,array):U[]
Defined in: src/php-arrays.ts:48
Apply a callback to the elements of the given arrays.
Type Parameters
T
T
U
U
Parameters
callback
(value, index) => U
The callback function to apply
array
T[]
The array to map over
Returns
U[]
The mapped array