Creates a function that invokes func, with up to n arguments, ignoring any additional arguments.
func
n
The function to cap arguments for.
The arity cap.
Optional
Enables use as an iteratee for methods like map.
map
Returns the new capped function.
5.5.0
map(['6', '8', '10'], ary(parseInt, 1));// => [6, 8, 10] Copy
map(['6', '8', '10'], ary(parseInt, 1));// => [6, 8, 10]
Creates a function that invokes
func
, with up ton
arguments, ignoring any additional arguments.