mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Use more destructuring.
This commit is contained in:
@@ -13,7 +13,7 @@ import isFlattenable from './isFlattenable.js'
|
||||
*/
|
||||
function baseFlatten(array, depth, predicate, isStrict, result) {
|
||||
let index = -1
|
||||
const length = array.length
|
||||
const { length } = array
|
||||
|
||||
predicate || (predicate = isFlattenable)
|
||||
result || (result = [])
|
||||
|
||||
Reference in New Issue
Block a user