remove duplicate words
This commit is contained in:
parent
c2ce2d4cbd
commit
6853f6ab78
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ alert( *!*key*/!* in user ); // true, property "age" exists
|
|||
|
||||
Why does the `in` operator exist? Isn't it enough to compare against `undefined`?
|
||||
|
||||
Well, most of the time the comparison with `undefined` works fine. But there's But there's a special case when it fails, but `"in"` works correctly.
|
||||
Well, most of the time the comparison with `undefined` works fine. But there's a special case when it fails, but `"in"` works correctly.
|
||||
|
||||
It's when an object property exists, but stores `undefined`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue