Skip to content

Commit 3033e55

Browse files
committed
tally.js updated
1 parent 8beb27f commit 3033e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-2/implement/tally.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function tally(arr) {
77
for (let i = 0; i < arr.length; i++) {
88
if (!obj[arr[i]])
99
obj[arr[i]] = 1;
10-
else if (obj[arr[i]])
10+
else
1111
obj[arr[i]]++;
1212
}
1313
return obj;

0 commit comments

Comments
 (0)