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 b1c7edb commit 4204a37Copy full SHA for 4204a37
Sprint-2/implement/tally.js
@@ -3,7 +3,7 @@ function tally(items) {
3
throw new Error("Input must be an array");
4
}
5
6
- const result = {};
+ const result = Object.create(null);
7
8
for (const item of items) {
9
if (result[item]) {
0 commit comments