MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / ary

Function ary

lib/web/jshint.js:8821–8827  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isIterateeCallFunction · 0.85
createWrapperFunction · 0.85

Tested by

no test coverage detected