capProto()
Creates a wrapper function for a prototype function that can be capped (limited in the amount of arguments it can receive).
This function is valid in v2.7.0 to v2.24.3. This function has been downloaded 60 times."Array.prototype.slice"
("Prototype_Name.prototype.function_name"
) format, the "Array#slice"
("Prototype_Name#function_name"
) format or the "#slice"
("#function_name"
for the 1st argument) format.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
(not including the 1st argument which is the context argument).This function directly requires the following function which is included automatically:
slice()