Lines Matching refs:accumulator
3801 function arrayReduce(array, iteratee, accumulator, initFromArray) {
3806 accumulator = array[++index];
3809 accumulator = iteratee(accumulator, array[index], index, array);
3811 return accumulator;
3826 function arrayReduceRight(array, iteratee, accumulator, initFromArray) {
3829 accumulator = array[--length];
3832 accumulator = iteratee(accumulator, array[length], length, array);
3834 return accumulator;
4823 function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
4825 accumulator = initFromCollection
4827 : iteratee(accumulator, value, index, collection)
4829 return accumulator;
5096 case 4: return function(accumulator, value, index, collection) {
5097 return func.call(thisArg, accumulator, value, index, collection);
8452 function reduce(collection, iteratee, accumulator, thisArg) {
8454 …return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, base…
8476 function reduceRight(collection, iteratee, accumulator, thisArg) {
8478 …return func(collection, getCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, base…
11271 function transform(object, iteratee, accumulator, thisArg) {
11275 if (accumulator == null) {
11279 accumulator = isArray(object) ? new Ctor : [];
11281 accumulator = baseCreate(typeof Ctor == 'function' && Ctor.prototype);
11284 accumulator = {};
11288 return iteratee(accumulator, value, index, object);
11290 return accumulator;