mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Use more destructuring.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
function baseSum(array, iteratee) {
|
||||
let result
|
||||
let index = -1
|
||||
const length = array.length
|
||||
const { length } = array
|
||||
|
||||
while (++index < length) {
|
||||
const current = iteratee(array[index])
|
||||
|
||||
Reference in New Issue
Block a user