Lines Matching refs:collection

156   function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {  argument
157 eachFunc(collection, function(value, index, collection) { argument
160 : iteratee(accumulator, value, index, collection);
469 function baseEvery(collection, predicate) { argument
471 baseEach(collection, function(value, index, collection) { argument
472 result = !!predicate(value, index, collection);
515 function baseFilter(collection, predicate) { argument
517 baseEach(collection, function(value, index, collection) { argument
518 if (predicate(value, index, collection)) {
783 function baseMap(collection, iteratee) { argument
785 result = isArrayLike(collection) ? Array(collection.length) : [];
787 baseEach(collection, function(value, key, collection) { argument
788 result[++index] = iteratee(value, key, collection);
902 function baseSome(collection, predicate) { argument
905 baseEach(collection, function(value, index, collection) { argument
906 result = predicate(value, index, collection);
1040 return function(collection, iteratee) { argument
1041 if (collection == null) {
1042 return collection;
1044 if (!isArrayLike(collection)) {
1045 return eachFunc(collection, iteratee);
1047 var length = collection.length,
1049 iterable = Object(collection);
1056 return collection;
1115 return function(collection, predicate, fromIndex) { argument
1116 var iterable = Object(collection);
1117 if (!isArrayLike(collection)) {
1119 collection = keys(collection);
1122 var index = findIndexFunc(collection, predicate, fromIndex);
1123 return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
1897 function every(collection, predicate, guard) { argument
1899 return baseEvery(collection, baseIteratee(predicate));
1939 function filter(collection, predicate) { argument
1940 return baseFilter(collection, baseIteratee(predicate));
2011 function forEach(collection, iteratee) { argument
2012 return baseEach(collection, baseIteratee(iteratee));
2057 function map(collection, iteratee) { argument
2058 return baseMap(collection, baseIteratee(iteratee));
2098 function reduce(collection, iteratee, accumulator) { argument
2099 …return baseReduce(collection, baseIteratee(iteratee), accumulator, arguments.length < 3, baseEach);
2123 function size(collection) { argument
2124 if (collection == null) {
2127 collection = isArrayLike(collection) ? collection : nativeKeys(collection);
2128 return collection.length;
2167 function some(collection, predicate, guard) { argument
2169 return baseSome(collection, baseIteratee(predicate));
2201 function sortBy(collection, iteratee) { argument
2205 return baseMap(baseMap(collection, function(value, key, collection) { argument
2206 return { 'value': value, 'index': index++, 'criteria': iteratee(value, key, collection) };