Skip to content

Commit d678b9b

Browse files
committed
Removed space before comma.
Fix comma splice. Add comma.
1 parent b37391e commit d678b9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/en/object/forinloop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ chain when iterating over the properties of an object.
1616
}
1717

1818
Since 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;
2020
this 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
3636
will **only** print out `moo`. When `hasOwnProperty` is left out, the code is
3737
prone to errors in cases where the native prototypes - e.g. `Object.prototype` -
3838
have been extended.
@@ -45,7 +45,7 @@ guaranteed to break.
4545

4646
It is recommended to **always** use `hasOwnProperty`. Never should any
4747
assumptions 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

0 commit comments

Comments
 (0)