Util
Ntharg

_.nthArg([n=0])

Creates a function that gets the argument at index n. If n is negative, the nth argument from the end is returned.

Arguments

[n=0] (number): The index of the argument to return.

Returns

(Function): Returns the new pass-thru function.

Example

Deep

Last updated on February 29, 2024