mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Fixin declaration in baseSum (3e2b0bb).
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
function baseSum(array, iteratee) {
|
||||
let result
|
||||
|
||||
for (value of array) {
|
||||
for (const value of array) {
|
||||
const current = iteratee(value)
|
||||
if (current !== undefined) {
|
||||
result = result === undefined ? current : (result + current)
|
||||
|
||||
Reference in New Issue
Block a user