Lines Matching refs:func

120 * <a href="#_aftern-func">`_.after`</a>
122 * <a href="#_beforen-func">`_.before`</a>
3520 <h3 id="_aftern-func"><code>_.after(n, func)</code></h3>
3524 `func` once it's called `n` or more times.
3530 1. `n` *(number)*: The number of calls before `func` is invoked.
3531 2. `func` *(Function)*: The function to restrict.
3555 <h3 id="_aryfunc-nfunclength"><code>_.ary(func, [n=func.length])</code></h3>
3558 Creates a function that invokes `func`, with up to `n` arguments,
3565 1. `func` *(Function)*: The function to cap arguments for.
3566 2. `[n=func.length]` *(number)*: The arity cap.
3582 <h3 id="_beforen-func"><code>_.before(n, func)</code></h3>
3585 Creates a function that invokes `func`, with the `this` binding and arguments
3587 calls to the created function return the result of the last `func` invocation.
3593 1. `n` *(number)*: The number of calls at which `func` is no longer invoked.
3594 2. `func` *(Function)*: The function to restrict.
3610 <h3 id="_bindfunc-thisarg-partials"><code>_.bind(func, thisArg, [partials])</code></h3>
3613 Creates a function that invokes `func` with the `this` binding of `thisArg`
3628 1. `func` *(Function)*: The function to bind.
3629 2. `thisArg` *(&#42;)*: The `this` binding of `func`.
3716 <h3 id="_curryfunc-arityfunclength"><code>_.curry(func, [arity=func.length])</code></h3>
3719 Creates a function that accepts arguments of `func` and either invokes
3720 `func` returning its result, if at least `arity` number of arguments have
3721 been provided, or returns a function that accepts the remaining `func`
3722 arguments, and so on. The arity of `func` may be specified if `func.length`
3736 1. `func` *(Function)*: The function to curry.
3737 2. `[arity=func.length]` *(number)*: The arity of `func`.
3769 <h3 id="_curryrightfunc-arityfunclength"><code>_.curryRight(func, [arity=func.length])</code></h3>
3772 This method is like `_.curry` except that arguments are applied to `func`
3786 1. `func` *(Function)*: The function to curry.
3787 2. `[arity=func.length]` *(number)*: The arity of `func`.
3819 <h3 id="_debouncefunc-wait0-options"><code>_.debounce(func, [wait=0], [options={}])</code></h3>
3822 Creates a debounced function that delays invoking `func` until after `wait`
3825 delayed `func` invocations and a `flush` method to immediately invoke them.
3826 Provide `options` to indicate whether `func` should be invoked on the
3827 leading and/or trailing edge of the `wait` timeout. The `func` is invoked
3829 calls to the debounced function return the result of the last `func`
3833 **Note:** If `leading` and `trailing` options are `true`, `func` is
3838 If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
3849 1. `func` *(Function)*: The function to debounce.
3853 5. `[options.maxWait]` *(number)*: The maximum time `func` is allowed to be delayed before it's inv…
3884 <h3 id="_deferfunc-args"><code>_.defer(func, [args])</code></h3>
3887 Defers invoking the `func` until the current call stack has cleared. Any
3888 additional arguments are provided to `func` when it's invoked.
3894 1. `func` *(Function)*: The function to defer.
3895 2. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
3913 <h3 id="_delayfunc-wait-args"><code>_.delay(func, wait, [args])</code></h3>
3916 Invokes `func` after `wait` milliseconds. Any additional arguments are
3917 provided to `func` when it's invoked.
3923 1. `func` *(Function)*: The function to delay.
3925 3. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
3943 <h3 id="_flipfunc"><code>_.flip(func)</code></h3>
3946 Creates a function that invokes `func` with arguments reversed.
3952 1. `func` *(Function)*: The function to flip arguments for.
3972 <h3 id="_memoizefunc-resolver"><code>_.memoize(func, [resolver])</code></h3>
3975 Creates a function that memoizes the result of `func`. If `resolver` is
3978 provided to the memoized function is used as the map cache key. The `func`
3992 1. `func` *(Function)*: The function to have its output memoized.
4031 Creates a function that negates the result of the predicate `func`. The
4032 `func` predicate is invoked with the `this` binding and arguments of the
4059 <h3 id="_oncefunc"><code>_.once(func)</code></h3>
4062 Creates a function that is restricted to invoking `func` once. Repeat calls
4063 to the function return the value of the first invocation. The `func` is
4070 1. `func` *(Function)*: The function to restrict.
4088 <h3 id="_overargsfunc-transforms_identity"><code>_.overArgs(func, [transforms=[_.identity]])</code>…
4091 Creates a function that invokes `func` with its arguments transformed.
4097 1. `func` *(Function)*: The function to wrap.
4113 var func = _.overArgs(function(x, y) {
4117 func(9, 3);
4120 func(10, 5);
4129 <h3 id="_partialfunc-partials"><code>_.partial(func, [partials])</code></h3>
4132 Creates a function that invokes `func` with `partials` prepended to the
4148 1. `func` *(Function)*: The function to partially apply arguments to.
4175 <h3 id="_partialrightfunc-partials"><code>_.partialRight(func, [partials])</code></h3>
4193 1. `func` *(Function)*: The function to partially apply arguments to.
4220 <h3 id="_reargfunc-indexes"><code>_.rearg(func, indexes)</code></h3>
4223 Creates a function that invokes `func` with arguments arranged according
4232 1. `func` *(Function)*: The function to rearrange arguments for.
4253 <h3 id="_restfunc-startfunclength-1"><code>_.rest(func, [start=func.length-1])</code></h3>
4256 Creates a function that invokes `func` with the `this` binding of the
4268 1. `func` *(Function)*: The function to apply a rest parameter to.
4269 2. `[start=func.length-1]` *(number)*: The start position of the rest parameter.
4290 <h3 id="_spreadfunc-start0"><code>_.spread(func, [start=0])</code></h3>
4293 Creates a function that invokes `func` with the `this` binding of the
4305 1. `func` *(Function)*: The function to spread arguments over.
4336 <h3 id="_throttlefunc-wait0-options"><code>_.throttle(func, [wait=0], [options={}])</code></h3>
4339 Creates a throttled function that only invokes `func` at most once per
4341 method to cancel delayed `func` invocations and a `flush` method to
4342 immediately invoke them. Provide `options` to indicate whether `func`
4344 timeout. The `func` is invoked with the last arguments provided to the
4346 result of the last `func` invocation.
4349 **Note:** If `leading` and `trailing` options are `true`, `func` is
4354 If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
4365 1. `func` *(Function)*: The function to throttle.
4392 <h3 id="_unaryfunc"><code>_.unary(func)</code></h3>
4402 1. `func` *(Function)*: The function to cap arguments for.
4438 var p = _.wrap(_.escape, function(func, text) {
4439 return '<p>' + func(text) + '</p>';
10076 <h3 id="_attemptfunc-args"><code>_.attempt(func, [args])</code></h3>
10079 Attempts to invoke `func`, returning either the result or the caught error
10080 object. Any additional arguments are provided to `func` when it's invoked.
10086 1. `func` *(Function)*: The function to attempt.
10087 2. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
10090 *(&#42;)*: Returns the `func` result or error object.
10166 var func = _.cond([
10172 func({ 'a': 1, 'b': 2 });
10175 func({ 'a': 0, 'b': 1 });
10178 func({ 'a': '1', 'b': '2' });
10374 <h3 id="_iterateefunc_identity"><code>_.iteratee([func=_.identity])</code></h3>
10377 Creates a function that invokes `func` with the arguments of the created
10378 function. If `func` is a property name, the created function returns the
10379 property value for a given element. If `func` is an array or object, the
10387 1. `[func=_.identity]` *(&#42;)*: The value to convert to a callback.
10412 _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
10413 return !_.isRegExp(func) ? iteratee(func) : function(string) {
10414 return func.test(string);
10681 var func = _.nthArg(1);
10682 func('a', 'b', 'c', 'd');
10685 var func = _.nthArg(-2);
10686 func('a', 'b', 'c', 'd');
10712 var func = _.over([Math.max, Math.min]);
10714 func(1, 2, 3, 4);
10740 var func = _.overEvery([Boolean, isFinite]);
10742 func('1');
10745 func(null);
10748 func(NaN);
10774 var func = _.overSome([Boolean, isFinite]);
10776 func('1');
10779 func(null);
10782 func(NaN);