Lines Matching refs:objects
131 var objects = [{x: 10}, {x: 20}, {x: 30}, {x: 40}];
133 …assert.strictEqual(_.sortedIndex(objects, {x: 25}, iterator), 2, 'uses the result of `iterator` fo…
134 …assert.strictEqual(_.sortedIndex(objects, {x: 35}, 'x'), 3, 'when `iterator` is a string, uses tha…
450 var objects = [
457 assert.equal(_.findIndex(objects, function(obj) {
461 assert.equal(_.findIndex(objects, function(obj) {
465 assert.equal(_.findIndex(objects, 'a'), 1, 'Uses lookupIterator');
467 assert.equal(_.findIndex(objects, function(obj) {
472 assert.strictEqual(_.findIndex(objects, function(a) {
478 assert.strictEqual(this, objects, 'called with context');
479 }, objects);
493 var objects = [
500 assert.equal(_.findLastIndex(objects, function(obj) {
504 assert.equal(_.findLastIndex(objects, function(obj) {
508 assert.equal(_.findLastIndex(objects, 'a'), 2, 'Uses lookupIterator');
510 assert.equal(_.findLastIndex(objects, function(obj) {
515 assert.strictEqual(_.findLastIndex(objects, function(a) {
521 assert.strictEqual(this, objects, 'called with context');
522 }, objects);