Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,6 +1,6 @@
import arrayReduceRight from './.internal/arrayReduceRight.js';
import baseEachRight from './.internal/baseEachRight.js';
import baseReduce from './.internal/baseReduce.js';
import arrayReduceRight from './.internal/arrayReduceRight.js'
import baseEachRight from './.internal/baseEachRight.js'
import baseReduce from './.internal/baseReduce.js'
/**
* This method is like `reduce` except that it iterates over elements of
@@ -15,15 +15,15 @@ import baseReduce from './.internal/baseReduce.js';
* @see reduce
* @example
*
* const array = [[0, 1], [2, 3], [4, 5]];
* const array = [[0, 1], [2, 3], [4, 5]]
*
* reduceRight(array, (flattened, other) => flattened.concat(other), []);
* reduceRight(array, (flattened, other) => flattened.concat(other), [])
* // => [4, 5, 2, 3, 0, 1]
*/
function reduceRight(collection, iteratee, accumulator) {
const func = Array.isArray(collection) ? arrayReduceRight : baseReduce;
const initAccum = arguments.length < 3;
return func(collection, iteratee, accumulator, initAccum, baseEachRight);
const func = Array.isArray(collection) ? arrayReduceRight : baseReduce
const initAccum = arguments.length < 3
return func(collection, iteratee, accumulator, initAccum, baseEachRight)
}
export default reduceRight;
export default reduceRight