Merge pull request #874 from Supernaiivi/typos

Fix English typo
This commit is contained in:
Ilya Kantor 2019-04-02 08:54:40 +03:00 committed by GitHub
commit 8006d3c523
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ for(let prop in rabbit) alert(prop); // jumps, then eats
*/!*
```
If that's no what we want, and we'd like to exclude inherited properties, there's a built-in method [obj.hasOwnProperty(key)](mdn:js/Object/hasOwnProperty): it returns `true` if `obj` has its own (not inherited) property named `key`.
If that's not what we want, and we'd like to exclude inherited properties, there's a built-in method [obj.hasOwnProperty(key)](mdn:js/Object/hasOwnProperty): it returns `true` if `obj` has its own (not inherited) property named `key`.
So we can filter out inherited properties (or do something else with them):