Lines Matching refs:collection

3930 	    function baseAt(collection, props) {
3932 length = collection.length,
3941 result[index] = isIndex(key, length) ? collection[key] : undefined;
3943 result[index] = collection[key];
4179 function baseEach(collection, iteratee) {
4180 var length = collection ? collection.length : 0;
4182 return baseForOwn(collection, iteratee);
4185 iterable = toObject(collection);
4192 return collection;
4204 function baseEachRight(collection, iteratee) {
4205 var length = collection ? collection.length : 0;
4207 return baseForOwnRight(collection, iteratee);
4209 var iterable = toObject(collection);
4215 return collection;
4228 function baseEvery(collection, predicate) {
4230 baseEach(collection, function(value, index, collection) {
4231 result = !!predicate(value, index, collection);
4246 function baseFilter(collection, predicate) {
4248 baseEach(collection, function(value, index, collection) {
4249 if (predicate(value, index, collection)) {
4269 function baseFind(collection, predicate, eachFunc, retKey) {
4271 eachFunc(collection, function(value, key, collection) {
4272 if (predicate(value, key, collection)) {
4444 function baseInvoke(collection, methodName, args) {
4447 length = collection ? collection.length : 0,
4450 baseEach(collection, function(value) {
4622 function baseMap(collection, iteratee) {
4624 baseEach(collection, function(value, key, collection) {
4625 result.push(iteratee(value, key, collection));
4823 function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
4824 eachFunc(collection, function(value, index, collection) {
4827 : iteratee(accumulator, value, index, collection)
4886 function baseSome(collection, predicate) {
4889 baseEach(collection, function(value, index, collection) {
4890 result = predicate(value, index, collection);
5093 case 3: return function(value, index, collection) {
5094 return func.call(thisArg, value, index, collection);
5096 case 4: return function(accumulator, value, index, collection) {
5097 return func.call(thisArg, accumulator, value, index, collection);
5212 return function(collection, iteratee, thisArg) {
5216 if (isArray(collection)) {
5218 length = collection.length;
5221 var value = collection[index];
5222 setter(result, value, iteratee(value, index, collection), collection);
5225 baseEach(collection, function(value, key, collection) {
5226 setter(result, value, iteratee(value, key, collection), collection);
5349 return function(collection, iteratee, thisArg) {
5350 if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
5361 var isArr = isArray(collection);
5362 if (!isArr && isString(collection)) {
5365 return arrayFunc(isArr ? collection : toIterable(collection));
5368 return extremumBy(collection, iteratee, isMin);
5747 function extremumBy(collection, iteratee, isMin) {
5752 baseEach(collection, function(value, index, collection) {
5753 var current = iteratee(value, index, collection);
5797 function getIndexOf(collection, target, fromIndex) {
5800 return collection ? result(collection, target, fromIndex) : result;
7754 function at(collection) {
7755 var length = collection ? collection.length : 0;
7757 collection = toIterable(collection);
7759 return baseAt(collection, baseFlatten(arguments, false, false, 1));
7794 function includes(collection, target, fromIndex) {
7795 var length = collection ? collection.length : 0;
7797 collection = values(collection);
7798 length = collection.length;
7808 return (typeof collection == 'string' || !isArray(collection) && isString(collection))
7809 ? (fromIndex < length && collection.indexOf(target, fromIndex) > -1)
7810 : (getIndexOf(collection, target, fromIndex) > -1);
7892 function every(collection, predicate, thisArg) {
7893 var func = isArray(collection) ? arrayEvery : baseEvery;
7897 return func(collection, predicate);
7940 function filter(collection, predicate, thisArg) {
7941 var func = isArray(collection) ? arrayFilter : baseFilter;
7943 return func(collection, predicate);
7987 function find(collection, predicate, thisArg) {
7988 if (isArray(collection)) {
7989 var index = findIndex(collection, predicate, thisArg);
7990 return index > -1 ? collection[index] : undefined;
7993 return baseFind(collection, predicate, baseEach);
8014 function findLast(collection, predicate, thisArg) {
8016 return baseFind(collection, predicate, baseEachRight);
8043 function findWhere(collection, source) {
8044 return find(collection, baseMatches(source));
8073 function forEach(collection, iteratee, thisArg) {
8074 … return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection))
8075 ? arrayEach(collection, iteratee)
8076 : baseEach(collection, bindCallback(iteratee, thisArg, 3));
8096 function forEachRight(collection, iteratee, thisArg) {
8097 … return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection))
8098 ? arrayEachRight(collection, iteratee)
8099 : baseEachRight(collection, bindCallback(iteratee, thisArg, 3));
8210 function invoke(collection, methodName) {
8211 return baseInvoke(collection, methodName, baseSlice(arguments, 2));
8253 function map(collection, iteratee, thisArg) {
8254 var func = isArray(collection) ? arrayMap : baseMap;
8256 return func(collection, iteratee);
8420 function pluck(collection, key) {
8421 return map(collection, baseProperty(key + ''));
8452 function reduce(collection, iteratee, accumulator, thisArg) {
8453 var func = isArray(collection) ? arrayReduce : baseReduce;
8454 …return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, base…
8476 function reduceRight(collection, iteratee, accumulator, thisArg) {
8477 var func = isArray(collection) ? arrayReduceRight : baseReduce;
8478 …return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, base…
8519 function reject(collection, predicate, thisArg) {
8520 var func = isArray(collection) ? arrayFilter : baseFilter;
8522 return func(collection, function(value, index, collection) {
8523 return !predicate(value, index, collection);
8545 function sample(collection, n, guard) {
8546 if (guard ? isIterateeCall(collection, n, guard) : n == null) {
8547 collection = toIterable(collection);
8548 var length = collection.length;
8549 return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
8551 var result = shuffle(collection);
8571 function shuffle(collection) {
8572 collection = toIterable(collection);
8575 length = collection.length,
8583 result[rand] = collection[index];
8608 function size(collection) {
8609 var length = collection ? collection.length : 0;
8610 return isLength(length) ? length : keys(collection).length;
8655 function some(collection, predicate, thisArg) {
8656 var func = isArray(collection) ? arraySome : baseSome;
8660 return func(collection, predicate);
8704 function sortBy(collection, iteratee, thisArg) {
8706 length = collection ? collection.length : 0,
8709 if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
8713 baseEach(collection, function(value, key, collection) {
8714 …result[++index] = { 'criteria': iteratee(value, key, collection), 'index': index, 'value': value };
8742 function sortByAll(collection) {
8745 args = [collection, args[1]];
8748 length = collection ? collection.length : 0,
8752 baseEach(collection, function(value, key, collection) {
8791 function where(collection, source) {
8792 return filter(collection, baseMatches(source));