Skip to content

Commit 240900f

Browse files
committed
remove inherited toSting function
1 parent e298a32 commit 240900f

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
@@ -6,7 +6,7 @@ function tally(list) {
66
const result = {};
77

88
for (const item of list) {
9-
if (result[item]) {
9+
if (Object.hasOwn(result, item)) {
1010
result[item]++;
1111
} else {
1212
result[item] = 1;

0 commit comments

Comments
 (0)