File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ chain when iterating over the properties of an object.
1616 }
1717
1818Since it is not possible to change the behavior of the ` for in ` loop itself, it
19- is necessary to filter out the unwanted properties inside the loop body ,
19+ is necessary to filter out the unwanted properties inside the loop body;
2020this is done by using the [ ` hasOwnProperty ` ] ( #object.hasownproperty ) method of
2121` Object.prototype ` .
2222
@@ -32,7 +32,7 @@ this is done by using the [`hasOwnProperty`](#object.hasownproperty) method of
3232 }
3333 }
3434
35- This version is the only correct one to use. Due to the use of ` hasOwnProperty ` it
35+ This version is the only correct one to use. Due to the use of ` hasOwnProperty ` , it
3636will ** only** print out ` moo ` . When ` hasOwnProperty ` is left out, the code is
3737prone to errors in cases where the native prototypes - e.g. ` Object.prototype ` -
3838have been extended.
@@ -45,7 +45,7 @@ guaranteed to break.
4545
4646It is recommended to ** always** use ` hasOwnProperty ` . Never should any
4747assumptions be made about the environment the code is running in, or whether the
48- native prototypes have been extended or not.
48+ native prototypes have been extended or not.
4949
5050[ 1 ] : http://www.prototypejs.org/
5151
You can’t perform that action at this time.
0 commit comments