Merge pull request #1717 from zeel/typo/bug-object-fix

fix: spell correction to existence
This commit is contained in:
Ilya Kantor 2020-01-24 14:35:40 +01:00 committed by GitHub
commit ff042a0319
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`: