Lines Matching refs:index
182 _.uniq(list, function(value, index, array) { argument
185 assert.strictEqual(index, 0, 'passes its iterator the index');
317 var index = _.indexOf(numbers, num, true);
318 assert.equal(index, -1, '35 is not in the list');
321 index = _.indexOf(numbers, num, true);
322 assert.equal(index, 3, '40 is in the list');
333 index = _.indexOf(numbers, 2, 5);
334 assert.equal(index, 7, 'supports the fromIndex argument');
336 index = _.indexOf([,,, 0], void 0);
337 assert.equal(index, 0, 'treats sparse arrays as if they were dense');
348 index = _.indexOf([], void 0, true);
349 assert.equal(index, -1, 'empty array with truthy `isSorted` returns -1');
392 var index = _.lastIndexOf(numbers, 2, 2);
393 assert.equal(index, 1, 'supports the fromIndex argument');