mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Use more destructuring.
This commit is contained in:
@@ -11,7 +11,7 @@ import baseSlice from './baseSlice.js'
|
||||
* @returns {Array} Returns the slice of `array`.
|
||||
*/
|
||||
function baseWhile(array, predicate, isDrop, fromRight) {
|
||||
const length = array.length
|
||||
const { length } = array
|
||||
let index = fromRight ? length : -1
|
||||
|
||||
while ((fromRight ? index-- : ++index < length) &&
|
||||
|
||||
Reference in New Issue
Block a user