diff --git a/packages/polyfill-has-own/src/main.ts b/packages/polyfill-has-own/src/main.ts index 9f93e172..a3fd4a3c 100644 --- a/packages/polyfill-has-own/src/main.ts +++ b/packages/polyfill-has-own/src/main.ts @@ -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) {