Apply let/const transform.

This commit is contained in:
John-David Dalton
2017-01-07 23:18:22 -08:00
parent 4c881b2726
commit 10f64ee9c4
103 changed files with 207 additions and 207 deletions

View File

@@ -9,11 +9,11 @@
* @returns {Function} Returns `accumulator`.
*/
function arrayAggregator(array, setter, iteratee, accumulator) {
var index = -1,
length = array == null ? 0 : array.length;
let index = -1;
const length = array == null ? 0 : array.length;
while (++index < length) {
var value = array[index];
const value = array[index];
setter(accumulator, value, iteratee(value), array);
}
return accumulator;