Lines Matching refs:x

265 …assert.strictEqual(_.find(array, function(x) { return x === 55; }), void 0, 'iterates array-likes …  argument
278 a: {x: 1, z: 3}, property in AnonymousFunction87f89eb62f00.obj.a
279 b: {x: 2, z: 2}, property in AnonymousFunction87f89eb62f00.obj.b
280 c: {x: 3, z: 4}, property in AnonymousFunction87f89eb62f00.obj.c
281 d: {x: 4, z: 1} property in AnonymousFunction87f89eb62f00.obj.d
284 assert.deepEqual(_.find(obj, {x: 2}), {x: 2, z: 2}, 'works on objects');
285 assert.deepEqual(_.find(obj, {x: 2, z: 1}), void 0);
286 assert.deepEqual(_.find(obj, function(x) { argument
287 return x.x === 4;
288 }), {x: 4, z: 1});
541 this.x = 'foo';
543 var expect = {c: 1, x: 'foo', y: 5}; property in AnonymousFunction87f89eb65400.expect
580 var a = {x: -Infinity}; property in AnonymousFunction87f89eb65500.a
581 var b = {x: -Infinity}; property in AnonymousFunction87f89eb65500.b
582 var iterator = function(o){ return o.x; };
587 … assert.deepEqual(_.max([0, 2], function(c){ return c * this.x; }, {x: 1}), 2, 'Iterator context');
623 var a = {x: Infinity}; property in AnonymousFunction87f89eb65800.a
624 var b = {x: Infinity}; property in AnonymousFunction87f89eb65800.b
625 var iterator = function(o){ return o.x; };
630 …assert.deepEqual(_.min([0, 2], function(c){ return c * this.x; }, {x: -1}), 2, 'Iterator context');
647 function Pair(x, y) { argument
648 this.x = x;
667 return pair.x;
674 return pair.x;
845 …assert.deepEqual(_.partition(list, function(x) { return x < 4; }), [[0, 1, 2, 3], [4, 5]], 'handle… argument
846 …assert.deepEqual(_.partition(list, function(x) { return x & 1; }), [[1, 3, 5], [0, 2, 4]], 'handle… argument
847 …assert.deepEqual(_.partition(list, function(x) { return x - 3; }), [[0, 1, 2, 4, 5], [3]], 'handle… argument
848 …assert.deepEqual(_.partition(list, function(x) { return x > 1 ? null : true; }), [[0, 1], [2, 3, 4… argument
849 …assert.deepEqual(_.partition(list, function(x) { if (x < 2) return true; }), [[0, 1], [2, 3, 4, 5]… argument
850 …assert.deepEqual(_.partition({a: 1, b: 2, c: 3}, function(x) { return x > 1; }), [[2, 3], [1]], 'h… argument
852 …assert.deepEqual(_.partition(list, function(x, index) { return index % 2; }), [[1, 3, 5], [0, 2, 4… argument
853 …assert.deepEqual(_.partition(list, function(x, index, arr) { return x === arr.length - 1; }), [[5]… argument
857 …assert.deepEqual(_.partition([{x: 1}, {x: 0}, {x: 1}], 'x'), [[{x: 1}, {x: 1}], [{x: 0}]], 'Takes …
860 var predicate = function(x){ return x === this.x; }; argument
861 …assert.deepEqual(_.partition([1, 2, 3], predicate, {x: 2}), [[2], [1, 3]], 'partition takes a cont…