Applies a transformation function over each element of an array and returns a new array with the transformed elements.
Because the array is supplied in first place, the type of the argument of the transformation function is inferred.
mapWith([1, 2, 3])((x) => x * 2); // [2, 4, 6] Copy
mapWith([1, 2, 3])((x) => x * 2); // [2, 4, 6]
Applies a transformation function over each element of an array and returns a new array with the transformed elements.
Because the array is supplied in first place, the type of the argument of the transformation function is inferred.
Example