Skip to content

Commit 106cf86

Browse files
committed
used Object.hasOwn for stricter property checking.
1 parent ed9cce6 commit 106cf86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sprint-2/implement/contains.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function contains(obj, key) {
2-
return key in obj;
2+
return Object.hasOwn(obj, key);
33
}
4-
module.exports = contains;
4+
5+
module.exports = contains;

0 commit comments

Comments
 (0)