mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -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) : [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user