mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import baseFlatten from './.internal/baseFlatten.js';
|
||||
import baseFlatten from './.internal/baseFlatten.js'
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
const INFINITY = 1 / 0;
|
||||
const INFINITY = 1 / 0
|
||||
|
||||
/**
|
||||
* Recursively flattens `array`.
|
||||
@@ -13,12 +13,12 @@ const INFINITY = 1 / 0;
|
||||
* @see flatMap, flatMapDeep, flatMapDepth, flatten, flattenDepth
|
||||
* @example
|
||||
*
|
||||
* flattenDeep([1, [2, [3, [4]], 5]]);
|
||||
* flattenDeep([1, [2, [3, [4]], 5]])
|
||||
* // => [1, 2, 3, 4, 5]
|
||||
*/
|
||||
function flattenDeep(array) {
|
||||
const length = array == null ? 0 : array.length;
|
||||
return length ? baseFlatten(array, INFINITY) : [];
|
||||
const length = array == null ? 0 : array.length
|
||||
return length ? baseFlatten(array, INFINITY) : []
|
||||
}
|
||||
|
||||
export default flattenDeep;
|
||||
export default flattenDeep
|
||||
|
||||
Reference in New Issue
Block a user