cap()
Puts a cap (limit) on the amount of arguments that a function can receive.
This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 61 times.fn.length
[]
fn
.opt_staticArgs.length
opt_staticArgs
to place the limited additional arguments if any are passed to the capped function. Negative position will be counted from the end of opt_staticArgs
.fn
with the passed in arguments when invoked, but it will limit the argument count to the value opt_maxArity
.This function directly requires the following function which is included automatically:
slice()