File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ does **not** traverse the prototype chain.
21
21
foo.hasOwnProperty('bar'); // false
22
22
foo.hasOwnProperty('goo'); // true
23
23
24
- Only ` hasOwnProperty ` will give the correct and expected result, this is
24
+ Only ` hasOwnProperty ` will give the correct and expected result; this is
25
25
essential when iterating over the properties of any object. There is ** no** other
26
26
way to exclude properties that are not defined on the object * itself* , but
27
27
somewhere on its prototype chain.
@@ -48,6 +48,6 @@ necessary to use an *external* `hasOwnProperty` in order to get correct results.
48
48
49
49
When checking for the existence of a property on a object, ` hasOwnProperty ` is
50
50
the ** only** method of doing so. It is also recommended to make ` hasOwnProperty `
51
- part of ** every** [ ` for in ` loop] ( #object.forinloop ) , this will avoid errors from
51
+ part of ** every** [ ` for in ` loop] ( #object.forinloop ) ; this will avoid errors from
52
52
extended native [ prototypes] ( #object.prototype ) .
53
53
You can’t perform that action at this time.
0 commit comments