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