Skip to content

Commit a3dea39

Browse files
authored
Update tally.js
1 parent b971c94 commit a3dea39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-2/implement/tally.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function tally(items) {
44
}
55
const counts = Object.create(null);
66
for (const item of items) {
7-
for (const item of items) {
7+
88
// JS runtime implicitly converts 'item' to a string key safely
99
counts[item] = (counts[item] || 0) + 1;
1010
}

0 commit comments

Comments
 (0)