cap()
Puts a cap (limit) on the amount of arguments that a function can receive.
This function is valid in v2.0.0. This function has been downloaded 0 times.fn.length
fn
.fn
with the passed in arguments when invoked, but it will limit the argument count to the value opt_maxArity
. When calling this newly created function, it will behave like this: fn.apply(this, YourJS.slice(arguments, 0, opt_maxArity))
.This function directly requires the following function which is included automatically:
slice()