Skip to content

Commit ac40924

Browse files
authored
Replace hasOwnProperty with Object.hasOwn
1 parent f204ada commit ac40924

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
@@ -6,7 +6,7 @@ function contains() {
66
}
77

88
// Check if the property exists directly on the object
9-
return Object.prototype.hasOwnProperty.call(obj, prop);
9+
return Object.hasOwn(obj, prop);
1010

1111
}
1212

0 commit comments

Comments
 (0)