We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8beb27f commit 3033e55Copy full SHA for 3033e55
Sprint-2/implement/tally.js
@@ -7,7 +7,7 @@ function tally(arr) {
7
for (let i = 0; i < arr.length; i++) {
8
if (!obj[arr[i]])
9
obj[arr[i]] = 1;
10
- else if (obj[arr[i]])
+ else
11
obj[arr[i]]++;
12
}
13
return obj;
0 commit comments