The function to cap arguments for.
Rest
...args: any[]Returns the new function.
Creates a function that accepts up to one argument, ignoring any additional arguments.
Function
_.map(['6', '8', '10'], _.unary(parseInt));
// => [6, 8, 10]
Returns the new function.
Generated using TypeDoc
Creates a function that accepts up to one argument, ignoring any additional arguments.
Example