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.
Object.hasOwn
1 parent 4ef69ed commit 81157eeCopy full SHA for 81157ee
README.md
@@ -311,6 +311,8 @@ Other Style Guides
311
/* or */
312
import has from 'has'; // https://www.npmjs.com/package/has
313
console.log(has(object, key));
314
+ /* or */
315
+ console.log(Object.hasOwn(object, key)); // https://www.npmjs.com/package/object.hasown
316
```
317
318
<a name="objects--rest-spread"></a>
0 commit comments