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

@@ -1,7 +1,7 @@
import baseSum from './_baseSum.js';
/** Used as references for various `Number` constants. */
var NAN = 0 / 0;
const NAN = 0 / 0;
/**
* The base implementation of `_.mean` and `_.meanBy` without support for
@@ -13,7 +13,7 @@ var NAN = 0 / 0;
* @returns {number} Returns the mean.
*/
function baseMean(array, iteratee) {
var length = array == null ? 0 : array.length;
const length = array == null ? 0 : array.length;
return length ? (baseSum(array, iteratee) / length) : NAN;
}