创建一个函数,调用func时候接收翻转的参数。
要翻转参数的函数。
返回一个新的函数。
const flipped = flip(function() { return toArray(arguments)})const result = flipped(1, 2, 3)// => [3, 2, 1] Copy
const flipped = flip(function() { return toArray(arguments)})const result = flipped(1, 2, 3)// => [3, 2, 1]
创建一个函数,调用func时候接收翻转的参数。