so, you need the callback, and you need the array, right?
If that’s all you need, your proposal is shorter without the method:
arr.replace(map);// VSmap(arr);
Once the |>
(pipe) operator will be out, currently at Stage 1, you can:
arr |> map
so no need to pollute the Array
prototype.