Skip to content

Commit

Permalink
docs(polyfill-has-own): Update @alwatr/polyfill-has-own package docum…
Browse files Browse the repository at this point in the history
…entation
  • Loading branch information
ArmanAsadian authored and alimd committed Sep 15, 2024
1 parent 618de1e commit abe0977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/polyfill-has-own/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* import '@alwatr/polyfill-has-own';
*
* const obj = { foo: 'bar' };
* Object.hasOwn('foo'); // true
* Object.hasOwn(obj, 'foo'); // true
* ```
*/
if (Object.hasOwnProperty('hasOwn') === false) {
Expand Down

0 comments on commit abe0977

Please sign in to comment.