Skip to content

Commit 21c0ee2

Browse files
committed
fix: update contains function to use Object.hasOwn
1 parent 5afff25 commit 21c0ee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-2/implement/contains.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function contains(obj, property) {
33
return false;
44
}
55

6-
return property in obj;
6+
return Object.hasOwn(obj, property);
77
}
88

99
module.exports = contains;

0 commit comments

Comments
 (0)