Skip to content

Commit c75e46f

Browse files
committed
feature: feature/baseSum-zero Consider 1 undefined, null, false
1 parent f299b52 commit c75e46f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lodash.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,8 @@
960960
* @returns {number} Returns the sum.
961961
*/
962962
function baseSum(array, iteratee) {
963-
var result,
964-
index = -1,
963+
var result = 0;
964+
var index = -1,
965965
length = array.length;
966966

967967
while (++index < length) {

0 commit comments

Comments
 (0)