The type of elements in the input array.
The array to be mapped over.
The callback function to be applied to each element of the array. This function takes three arguments: the current element, its index, and the original array.
The original array, mutated by the callback function.
arrMapMutable([1, 2, 3], (value: number) => value * 2);;
//=> [2, 4, 6]
Generated using TypeDoc
This function takes an array and a callback function as arguments. It applies the callback function to each element of the array, mutating the original array in the process.