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 88da8ba commit 803f3c1Copy full SHA for 803f3c1
concepts/type-checking/about.md
@@ -119,15 +119,17 @@ const espresso = new Coffee();
119
```
120
121
````exercism/note
122
-`in` can be slightly unreliable, as it will return `true` for inherited properties and methods.
+`in` will return `true` for inherited properties and methods.
123
+
124
```javascript
125
"coolDown" in espresso
126
// => true
127
128
"constructor" in espresso
129
130
-To avoid this, use the hasOwnProperty() method.
131
132
+To avoid this, use `Object.hasOwn()` instead
133
````
134
135
## The `Object.hasOwn()` function
0 commit comments