minor fixes

This commit is contained in:
Violet Bora Lee 2020-05-06 17:10:28 +09:00
parent 2289134483
commit b782700818
5 changed files with 7 additions and 7 deletions

View file

@ -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`: