Lines Matching refs:function

694 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
707 _.dropRightWhile(users, function(o) { return !o.active; });
740 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
753 _.dropWhile(users, function(o) { return !o.active; });
826 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
840 _.findIndex(users, function(o) { return o.user == 'barney'; });
872 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
886 _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
1502 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
1510 var evens = _.remove(array, function(n) {
1637 _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
1727 _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
1927 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
1940 _.takeRightWhile(users, function(o) { return !o.active; });
1973 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
1986 _.takeWhile(users, function(o) { return !o.active; });
2236 2. `[iteratee=_.identity]` *(Function)*: The function to combine regrouped values.
2472 2. `[iteratee=_.identity]` *(Function)*: The function to combine grouped values.
2479 _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
2547 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
2595 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
2607 _.filter(users, function(o) { return !o.active; });
2640 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
2654 _.find(users, function(o) { return o.age < 40; });
2686 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
2694 _.findLast([1, 2, 3, 4], function(n) {
2717 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
2724 function duplicate(n) {
2748 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
2755 function duplicate(n) {
2779 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
2787 function duplicate(n) {
2820 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
2827 _.forEach([1, 2], function(value) {
2832 _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
2857 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
2864 _.forEachRight([1, 2], function(value) {
2954 are provided to each invoked method. If `path` is a function, it's invoked
2962 2. `path` *(Array|Function|string)*: The path of the method to invoke or the function invoked per i…
3007 _.keyBy(array, function(o) {
3044 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
3051 function square(n) {
3127 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
3140 _.partition(users, function(o) { return o.active; });
3185 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
3193 _.reduce([1, 2], function(sum, n) {
3198 _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
3221 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
3231 _.reduceRight(array, function(flattened, other) {
3253 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
3265 _.reject(users, function(o) { return !o.active; });
3411 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
3471 _.sortBy(users, [function(o) { return o.user; }]);
3503 _.defer(function(stamp) {
3523 The opposite of `_.before`; this method creates a function that invokes
3531 2. `func` *(Function)*: The function to restrict.
3534 *(Function)*: Returns the new restricted function.
3540 var done = _.after(saves.length, function() {
3544 _.forEach(saves, function(type) {
3558 Creates a function that invokes `func`, with up to `n` arguments,
3565 1. `func` *(Function)*: The function to cap arguments for.
3569 *(Function)*: Returns the new capped function.
3585 Creates a function that invokes `func`, with the `this` binding and arguments
3586 of the created function, while it's called less than `n` times. Subsequent
3587 calls to the created function return the result of the last `func` invocation.
3594 2. `func` *(Function)*: The function to restrict.
3597 *(Function)*: Returns the new restricted function.
3613 Creates a function that invokes `func` with the `this` binding of `thisArg`
3628 1. `func` *(Function)*: The function to bind.
3633 *(Function)*: Returns the new bound function.
3637 function greet(greeting, punctuation) {
3661 Creates a function that invokes the method at `object[key]` with `partials`
3667 [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
3683 *(Function)*: Returns the new bound function.
3689 'greet': function(greeting, punctuation) {
3698 object.greet = function(greeting, punctuation) {
3719 Creates a function that accepts arguments of `func` and either invokes
3721 been provided, or returns a function that accepts the remaining `func`
3736 1. `func` *(Function)*: The function to curry.
3740 *(Function)*: Returns the new curried function.
3744 var abc = function(a, b, c) {
3786 1. `func` *(Function)*: The function to curry.
3790 *(Function)*: Returns the new curried function.
3794 var abc = function(a, b, c) {
3822 Creates a debounced function that delays invoking `func` until after `wait`
3823 milliseconds have elapsed since the last time the debounced function was
3824 invoked. The debounced function comes with a `cancel` method to cancel
3828 with the last arguments provided to the debounced function. Subsequent
3829 calls to the debounced function return the result of the last `func`
3834 invoked on the trailing edge of the timeout only if the debounced function
3849 1. `func` *(Function)*: The function to debounce.
3857 *(Function)*: Returns the new debounced function.
3894 1. `func` *(Function)*: The function to defer.
3902 _.defer(function(text) {
3923 1. `func` *(Function)*: The function to delay.
3932 _.delay(function(text) {
3946 Creates a function that invokes `func` with arguments reversed.
3952 1. `func` *(Function)*: The function to flip arguments for.
3955 *(Function)*: Returns the new flipped function.
3959 var flipped = _.flip(function() {
3975 Creates a function that memoizes the result of `func`. If `resolver` is
3977 arguments provided to the memoized function. By default, the first argument
3978 provided to the memoized function is used as the map cache key. The `func`
3979 is invoked with the `this` binding of the memoized function.
3983 function. Its creation may be customized by replacing the `_.memoize.Cache`
3992 1. `func` *(Function)*: The function to have its output memoized.
3993 2. `[resolver]` *(Function)*: The function to resolve the cache key.
3996 *(Function)*: Returns the new memoized function.
4031 Creates a function that negates the result of the predicate `func`. The
4033 created function.
4042 *(Function)*: Returns the new negated function.
4046 function isEven(n) {
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
4064 invoked with the `this` binding and arguments of the created function.
4070 1. `func` *(Function)*: The function to restrict.
4073 *(Function)*: Returns the new restricted function.
4091 Creates a function that invokes `func` with its arguments transformed.
4097 1. `func` *(Function)*: The function to wrap.
4101 *(Function)*: Returns the new function.
4105 function doubled(n) {
4109 function square(n) {
4113 var func = _.overArgs(function(x, y) {
4132 Creates a function that invokes `func` with `partials` prepended to the
4148 1. `func` *(Function)*: The function to partially apply arguments to.
4152 *(Function)*: Returns the new partially applied function.
4156 function greet(greeting, name) {
4193 1. `func` *(Function)*: The function to partially apply arguments to.
4197 *(Function)*: Returns the new partially applied function.
4201 function greet(greeting, name) {
4223 Creates a function that invokes `func` with arguments arranged according
4232 1. `func` *(Function)*: The function to rearrange arguments for.
4236 *(Function)*: Returns the new function.
4240 var rearged = _.rearg(function(a, b, c) {
4256 Creates a function that invokes `func` with the `this` binding of the
4257 created function and arguments from `start` and beyond provided as
4268 1. `func` *(Function)*: The function to apply a rest parameter to.
4272 *(Function)*: Returns the new function.
4276 var say = _.rest(function(what, names) {
4293 Creates a function that invokes `func` with the `this` binding of the
4294 create function and an array of arguments much like
4295 [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
4305 1. `func` *(Function)*: The function to spread arguments over.
4309 *(Function)*: Returns the new function.
4313 var say = _.spread(function(who, what) {
4325 numbers.then(_.spread(function(x, y) {
4339 Creates a throttled function that only invokes `func` at most once per
4340 every `wait` milliseconds. The throttled function comes with a `cancel`
4345 throttled function. Subsequent calls to the throttled function return the
4350 invoked on the trailing edge of the timeout only if the throttled function
4365 1. `func` *(Function)*: The function to throttle.
4372 *(Function)*: Returns the new throttled function.
4395 Creates a function that accepts up to one argument, ignoring any
4402 1. `func` *(Function)*: The function to cap arguments for.
4405 *(Function)*: Returns the new capped function.
4421 Creates a function that provides `value` to `wrapper` as its first
4422 argument. Any additional arguments provided to the function are appended
4424 binding of the created function.
4431 2. `[wrapper=identity]` *(Function)*: The wrapper function.
4434 *(Function)*: Returns the new function.
4438 var p = _.wrap(_.escape, function(func, text) {
4576 2. `[customizer]` *(Function)*: The function to customize cloning.
4583 function customizer(value) {
4617 2. `[customizer]` *(Function)*: The function to customize cloning.
4624 function customizer(value) {
4669 _.conformsTo(object, { 'b': function(n) { return n > 1; } });
4672 _.conformsTo(object, { 'b': function(n) { return n > 2; } });
4804 _.isArguments(function() { return arguments; }());
4882 not a function and has a `value.length` that's an integer greater than or
5161 3. `[customizer]` *(Function)*: The function to customize comparisons.
5168 function isGreeting(value) {
5172 function customizer(objValue, othValue) {
5269 *(boolean)*: Returns `true` if `value` is a function, else `false`.
5444 3. `[customizer]` *(Function)*: The function to customize comparisons.
5451 function isGreeting(value) {
5455 function customizer(objValue, srcValue) {
5516 Checks if `value` is a pristine native function.
5534 *(boolean)*: Returns `true` if `value` is a native function, else `false`.
5735 function Foo() {
6280 function Foo() {
6537 _.maxBy(objects, function(o) { return o.n; });
6596 _.meanBy(objects, function(o) { return o.n; });
6659 _.minBy(objects, function(o) { return o.n; });
6802 _.sumBy(objects, function(o) { return o.n; });
6971 function Foo() {
6975 function Bar() {
7015 function Foo() {
7019 function Bar() {
7055 3. `[customizer]` *(Function)*: The function to customize assigned values.
7062 function customizer(objValue, srcValue) {
7094 3. `[customizer]` *(Function)*: The function to customize assigned values.
7101 function customizer(objValue, srcValue) {
7163 function Shape() {
7168 function Circle() {
7262 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
7275 _.findKey(users, function(o) { return o.age < 40; });
7307 2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
7320 _.findLastKey(users, function(o) { return o.age < 40; });
7354 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
7361 function Foo() {
7368 _.forIn(new Foo, function(value, key) {
7390 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
7397 function Foo() {
7404 _.forInRight(new Foo, function(value, key) {
7428 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
7435 function Foo() {
7442 _.forOwn(new Foo, function(value, key) {
7464 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
7471 function Foo() {
7478 _.forOwnRight(new Foo, function(value, key) {
7492 Creates an array of function property names from own enumerable properties
7502 *(Array)*: Returns the function names.
7506 function Foo() {
7525 Creates an array of function property names from own and inherited
7535 *(Array)*: Returns the function names.
7539 function Foo() {
7721 _.invertBy(object, function(value) {
7782 function Foo() {
7820 function Foo() {
7849 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
7856 _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
7880 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
7892 _.mapValues(users, function(o) { return o.age; });
7966 3. `customizer` *(Function)*: The function to customize assigned values.
7973 function customizer(objValue, srcValue) {
8036 2. `[predicate=_.identity]` *(Function)*: The function invoked per property.
8093 2. `[predicate=_.identity]` *(Function)*: The function invoked per property.
8115 function it's invoked with the `this` binding of its parent object and
8209 4. `[customizer]` *(Function)*: The function to customize assigned values.
8248 function Foo() {
8285 function Foo() {
8317 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
8325 _.transform([2, 3, 4], function(result, n) {
8331 _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
8397 3. `updater` *(Function)*: The function to produce the updated value.
8406 _.update(object, 'a[0].b.c', function(n) { return n * n; });
8410 _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
8437 3. `updater` *(Function)*: The function to produce the updated value.
8438 4. `[customizer]` *(Function)*: The function to customize assigned values.
8475 function Foo() {
8514 function Foo() {
8647 function square(n) {
8699 .map(function(o) {
8724 2. `interceptor` *(Function)*: The function to invoke.
8732 .tap(function(array) {
8758 2. `interceptor` *(Function)*: The function to invoke.
8768 .thru(function(value) {
8952 function square(n) {
9641 Creates a compiled template function that can interpolate data properties
9674 *(Function)*: Returns the compiled template function.
9689 var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
9693 // Use the internal `print` function in "evaluate" delimiters.
9710 var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
9723 // => function(data) {
10086 1. `func` *(Function)*: The function to attempt.
10095 var elements = _.attempt(function(selector) {
10132 'click': function() {
10150 Creates a function that iterates over `pairs` and invokes the corresponding
10151 function of the first predicate to return truthy. The predicate-function
10153 function.
10159 1. `pairs` *(Array)*: The predicate-function pairs.
10162 *(Function)*: Returns the new composite function.
10190 Creates a function that invokes the predicate properties of `source` with
10195 **Note:** The created function is equivalent to `_.conformsTo` with
10205 *(Function)*: Returns the new spec function.
10214 _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
10226 Creates a function that returns `value`.
10232 1. `value` *(&#42;)*: The value to return from the new function.
10235 *(Function)*: Returns the new constant function.
10287 Creates a function that returns the result of invoking the given functions
10288 with the `this` binding of the created function, where each successive
10298 *(Function)*: Returns the new composite function.
10302 function square(n) {
10319 This method is like `_.flow` except that it creates a function that
10329 *(Function)*: Returns the new composite function.
10333 function square(n) {
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
10380 created function returns `true` for elements that contain the equivalent
10412 _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
10413 return !_.isRegExp(func) ? iteratee(func) : function(string) {
10430 Creates a function that performs a partial deep comparison between a given
10435 **Note:** The created function is equivalent to `_.isMatch` with `source`
10450 *(Function)*: Returns the new spec function.
10471 Creates a function that performs a partial deep comparison between the
10488 *(Function)*: Returns the new spec function.
10509 Creates a function that invokes the method at `path` of a given object.
10520 *(Function)*: Returns the new invoker function.
10544 The opposite of `_.method`; this method creates a function that invokes
10556 *(Function)*: Returns the new invoker function.
10578 Adds all own enumerable string keyed function properties of a source
10579 object to the destination object. If `object` is a function, then methods
10583 **Note:** Use `_.runInContext` to create a pristine `lodash` function to
10600 function vowels(string) {
10601 return _.filter(string, function(v) {
10627 the `lodash` function.
10633 *(Function)*: Returns the `lodash` function.
10667 Creates a function that gets the argument at index `n`. If `n` is negative,
10677 *(Function)*: Returns the new pass-thru function.
10698 Creates a function that invokes `iteratees` with the arguments it receives
10708 *(Function)*: Returns the new function.
10726 Creates a function that checks if **all** of the `predicates` return
10736 *(Function)*: Returns the new function.
10760 Creates a function that checks if **any** of the `predicates` return
10770 *(Function)*: Returns the new function.
10794 Creates a function that returns the value at `path` of a given object.
10803 *(Function)*: Returns the new accessor function.
10827 The opposite of `_.property`; this method creates a function that returns
10837 *(Function)*: Returns the new accessor function.
10957 Create a new pristine `lodash` function using the `context` object.
10966 *(Function)*: Returns a new `lodash` function.
11125 2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
11294 A reference to the `lodash` function.