fix: spell correction to existence

This commit is contained in:
Zeel 2020-01-21 16:16:09 +05:30 committed by GitHub
parent db3b3f8e7a
commit 4e4144b084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,7 +322,7 @@ alert( *!*key*/!* in user ); // true, takes the name from key and checks for suc
```
````smart header="Using \"in\" for properties that store `undefined`"
Usually, the strict comparison `"=== undefined"` check the property existance just fine. But there's a special case when it fails, but `"in"` works correctly.
Usually, the strict comparison `"=== undefined"` check the property existence just fine. But there's a special case when it fails, but `"in"` works correctly.
It's when an object property exists, but stores `undefined`: