File tree 1 file changed +2
-2
lines changed
files/en-us/web/javascript/reference/global_objects/object/hasownproperty
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ example.prop = 'exists';
75
75
example .hasOwnProperty (' prop' ); // true - 'prop' has been defined
76
76
77
77
example .prop = null ;
78
- example .hasOwnProperty (' prop' ); // true - own property exists wtih value of null
78
+ example .hasOwnProperty (' prop' ); // true - own property exists with value of null
79
79
80
80
example .prop = undefined ;
81
81
example .hasOwnProperty (' prop' ); // true - own property exists with value of undefined
@@ -194,4 +194,4 @@ external object's `hasOwnProperty()`.
194
194
- {{jsxref("Object.getOwnPropertyNames()")}}
195
195
- {{jsxref("Statements/for...in", "for...in")}}
196
196
- {{jsxref("Operators/in", "in")}}
197
- - [ JavaScript Guide: Inheritance revisited] ( /en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain )
197
+ - [ JavaScript Guide: Inheritance revisited] ( /en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain )
You can’t perform that action at this time.
0 commit comments