* Creates a function that accepts up to `n` arguments ignoring any * additional arguments. * * @static * @memberOf _ * @category Function * @param {Function} func The function to cap arguments for. * @param {number} [n=func.length] The arity cap. * @param- {Ob
(func, n, guard)
| 8819 | * // => [6, 8, 10] |
| 8820 | */ |
| 8821 | function ary(func, n, guard) { |
| 8822 | if (guard && isIterateeCall(func, n, guard)) { |
| 8823 | n = null; |
| 8824 | } |
| 8825 | n = (func && n == null) ? func.length : nativeMax(+n || 0, 0); |
| 8826 | return createWrapper(func, ARY_FLAG, null, null, null, null, n); |
| 8827 | } |
| 8828 | |
| 8829 | /** |
| 8830 | * Creates a function that invokes `func`, with the `this` binding and arguments |
nothing calls this directly
no test coverage detected