Apply even more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-09 12:23:34 -08:00
parent e6152a97e8
commit dc687c1d85
177 changed files with 433 additions and 437 deletions

View File

@@ -1,7 +1,7 @@
import baseFlatten from './_baseFlatten.js';
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
const INFINITY = 1 / 0;
/**
* Recursively flattens `array`.
@@ -18,7 +18,7 @@ var INFINITY = 1 / 0;
* // => [1, 2, 3, 4, 5]
*/
function flattenDeep(array) {
var length = array == null ? 0 : array.length;
const length = array == null ? 0 : array.length;
return length ? baseFlatten(array, INFINITY) : [];
}