Creates a function that invokes func with arguments reversed.
func
The function to flip arguments for.
Returns the new flipped function.
5.12.0
[[reverse]]
const flipped = flip((...args) => args)flipped('a', 'b', 'c', 'd')// => ['d', 'c', 'b', 'a'] Copy
const flipped = flip((...args) => args)flipped('a', 'b', 'c', 'd')// => ['d', 'c', 'b', 'a']
Creates a function that invokes
func
with arguments reversed.