mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Remove semicolons.
This commit is contained in:
10
flatten.js
10
flatten.js
@@ -1,4 +1,4 @@
|
||||
import baseFlatten from './.internal/baseFlatten.js';
|
||||
import baseFlatten from './.internal/baseFlatten.js'
|
||||
|
||||
/**
|
||||
* Flattens `array` a single level deep.
|
||||
@@ -10,12 +10,12 @@ import baseFlatten from './.internal/baseFlatten.js';
|
||||
* @see flatMap, flatMapDeep, flatMapDepth, flattenDeep, flattenDepth
|
||||
* @example
|
||||
*
|
||||
* flatten([1, [2, [3, [4]], 5]]);
|
||||
* flatten([1, [2, [3, [4]], 5]])
|
||||
* // => [1, 2, [3, [4]], 5]
|
||||
*/
|
||||
function flatten(array) {
|
||||
const length = array == null ? 0 : array.length;
|
||||
return length ? baseFlatten(array, 1) : [];
|
||||
const length = array == null ? 0 : array.length
|
||||
return length ? baseFlatten(array, 1) : []
|
||||
}
|
||||
|
||||
export default flatten;
|
||||
export default flatten
|
||||
|
||||
Reference in New Issue
Block a user