Skip to content

Commit b37391e

Browse files
committed
Fix comma splices.
1 parent f3c8a30 commit b37391e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/object/hasownproperty.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ does **not** traverse the prototype chain.
2121
foo.hasOwnProperty('bar'); // false
2222
foo.hasOwnProperty('goo'); // true
2323

24-
Only `hasOwnProperty` will give the correct and expected result, this is
24+
Only `hasOwnProperty` will give the correct and expected result; this is
2525
essential when iterating over the properties of any object. There is **no** other
2626
way to exclude properties that are not defined on the object *itself*, but
2727
somewhere on its prototype chain.
@@ -48,6 +48,6 @@ necessary to use an *external* `hasOwnProperty` in order to get correct results.
4848

4949
When checking for the existence of a property on a object, `hasOwnProperty` is
5050
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
5252
extended native [prototypes](#object.prototype).
5353

0 commit comments

Comments
 (0)