vectorize a one parameter function

const abs = (v) => v >= 0 ? v : -v
const arr = new Float32Array(10_000).map(() => 123 * (Math.random() - 0.5))
vectorize1(abs, arr, arr) // `arr` is now filled with absolute valued random numbers