ary
Creates a function that accepts up to n
arguments, ignoring any additional arguments.
- Call the provided function,
fn
, with up ton
arguments, usingArray.prototype.slice(0, n)
and the spread operator (...
).
Creates a function that accepts up to n
arguments, ignoring any additional arguments.
fn
, with up to n
arguments, using Array.prototype.slice(0, n)
and the spread operator (...
).