Creates a function that invokes func with its arguments transformed.
func
The function to wrap.
The argument transforms.
Returns the new function.
5.11.0
function doubled(n) { return n * 2}function square(n) { return n * n}const func = overArgs((x, y) => [x, y], [square, doubled])func(9, 3)// => [81, 6]func(10, 5)// => [100, 10] Copy
function doubled(n) { return n * 2}function square(n) { return n * n}const func = overArgs((x, y) => [x, y], [square, doubled])func(9, 3)// => [81, 6]func(10, 5)// => [100, 10]
Creates a function that invokes
func
with its arguments transformed.