curry()
Creates a wrapper function that will only execute the given function once the number of arguments passed is at least a given amount. If the wrapper is called with too few arguments, those arguments will be recursively stored within a new wrapper function.
This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 60 times.fn.length
false
[]
fn
. If opt_curryRight
is true
any arguments passed to the wrapper function will precede these arguments when invoking the function, otherwise any arguments passed to the wrapper function will come after these arguments when invoking the function.opt_presetArgs
) amounts to opt_argsNeeded
. If the minimum number of arguments are passed to this function it will invoke fn
with all of the arguments passed in.This function directly requires the following function which is included automatically:
slice()