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 4ace578 commit e142edfCopy full SHA for e142edf
doc/en/object/hasownproperty.md
@@ -44,7 +44,8 @@ necessary to use an *external* `hasOwnProperty` to get correct results.
44
// Use another Object's hasOwnProperty and call it with 'this' set to foo
45
({}).hasOwnProperty.call(foo, 'bar'); // true
46
47
- // It's also possible to use the hasOwnProperty property from the Object property for this purpose
+ // It's also possible to use hasOwnProperty from the Object
48
+ // prototype for this purpose
49
Object.prototype.hasOwnProperty.call(foo, 'bar'); // true
50
51
0 commit comments