Lines Matching refs:objects

601 var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
603 _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
708 // => objects for ['barney']
712 // => objects for ['barney', 'fred']
716 // => objects for ['barney']
720 // => objects for ['barney', 'fred', 'pebbles']
754 // => objects for ['pebbles']
758 // => objects for ['fred', 'pebbles']
762 // => objects for ['pebbles']
766 // => objects for ['barney', 'fred', 'pebbles']
1186 var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
1189 _.intersectionWith(objects, others, _.isEqual);
1635 var objects = [{ 'x': 4 }, { 'x': 5 }];
1637 _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
1641 _.sortedIndexBy(objects, { 'x': 4 }, 'x');
1725 var objects = [{ 'x': 4 }, { 'x': 5 }];
1727 _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
1731 _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
1941 // => objects for ['fred', 'pebbles']
1945 // => objects for ['pebbles']
1949 // => objects for ['fred', 'pebbles']
1987 // => objects for ['barney', 'fred']
1991 // => objects for ['barney']
1995 // => objects for ['barney', 'fred']
2088 var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
2091 _.unionWith(objects, others, _.isEqual);
2183 var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
2185 _.uniqWith(objects, _.isEqual);
2368 var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
2371 _.xorWith(objects, others, _.isEqual);
2608 // => objects for ['fred']
2612 // => objects for ['barney']
2616 // => objects for ['fred']
2620 // => objects for ['barney']
2808 **Note:** As with other "Collections" methods, objects with a "length"
3106 // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
3141 // => objects for [['fred'], ['barney', 'pebbles']]
3145 // => objects for [['pebbles'], ['barney', 'fred']]
3149 // => objects for [['barney', 'pebbles'], ['fred']]
3153 // => objects for [['fred'], ['barney', 'pebbles']]
3266 // => objects for ['fred']
3270 // => objects for ['barney']
3274 // => objects for ['fred']
3278 // => objects for ['barney']
3371 values or the number of own enumerable string keyed properties for objects.
3472 // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
3475 // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
4509 and supports cloning arrays, array buffers, booleans, date objects, maps,
4510 numbers, `Object` objects, regexes, sets, strings, symbols, and typed
4511 arrays. The own enumerable properties of `arguments` objects are cloned
4512 as plain objects. An empty object is returned for uncloneable values such
4513 as error objects, functions, DOM nodes, and WeakMaps.
4526 var objects = [{ 'a': 1 }, { 'b': 2 }];
4528 var shallow = _.clone(objects);
4529 console.log(shallow[0] === objects[0]);
4554 var objects = [{ 'a': 1 }, { 'b': 2 }];
4556 var deep = _.cloneDeep(objects);
4557 console.log(deep[0] === objects[0]);
5071 Array-like values such as `arguments` objects, arrays, buffers, strings, or
5115 date objects, error objects, maps, numbers, `Object` objects, regexes,
5116 sets, strings, symbols, and typed arrays. `Object` objects are compared
5652 of `Object`. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
6535 var objects = [{ 'n': 1 }, { 'n': 2 }];
6537 _.maxBy(objects, function(o) { return o.n; });
6541 _.maxBy(objects, 'n');
6594 var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
6596 _.meanBy(objects, function(o) { return o.n; });
6600 _.meanBy(objects, 'n');
6657 var objects = [{ 'n': 1 }, { 'n': 2 }];
6659 _.minBy(objects, function(o) { return o.n; });
6663 _.minBy(objects, 'n');
6800 var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
6802 _.sumBy(objects, function(o) { return o.n; });
6806 _.sumBy(objects, 'n');
6951 Assigns own enumerable string keyed properties of source objects to the
6952 destination object. Source objects are applied from left to right.
6964 2. `[sources]` *(...Object)*: The source objects.
7008 2. `[sources]` *(...Object)*: The source objects.
7054 2. `sources` *(...Object)*: The source objects.
7093 2. `sources` *(...Object)*: The source objects.
7193 objects to the destination object for all destination properties that
7194 resolve to `undefined`. Source objects are applied from left to right.
7205 2. `[sources]` *(...Object)*: The source objects.
7235 2. `[sources]` *(...Object)*: The source objects.
7767 **Note:** Non-object values are coerced to objects. See the
7807 **Note:** Non-object values are coerced to objects.
7909 inherited enumerable string keyed properties of source objects into the
7912 are merged recursively. Other objects and value types are overridden by
7913 assignment. Source objects are applied from left to right. Subsequent
7924 2. `[sources]` *(...Object)*: The source objects.
7965 2. `sources` *(...Object)*: The source objects.
8155 it's created. Arrays are created for missing index properties while objects
8195 invoked to produce the objects of `path`. If `customizer` returns `undefined`
8424 invoked to produce the objects of `path`. If `customizer` returns `undefined`
8462 **Note:** Non-object values are coerced to objects.
8501 **Note:** Non-object values are coerced to objects.
10209 var objects = [
10214 _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
10239 var objects = _.times(2, _.constant({ 'a': 1 }));
10241 console.log(objects);
10244 console.log(objects[0] === objects[1]);
10454 var objects = [
10459 _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
10492 var objects = [
10497 _.find(objects, _.matchesProperty('a', 4));
10524 var objects = [
10529 _.map(objects, _.method('a.b'));
10532 _.map(objects, _.method(['a', 'b']));
10807 var objects = [
10812 _.map(objects, _.property('a.b'));
10815 _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
11056 var objects = _.times(2, _.stubObject);
11058 console.log(objects);
11061 console.log(objects[0] === objects[1]);