diff --git a/1-js/08-prototypes/05-getting-all-properties/article.md b/1-js/08-prototypes/05-getting-all-properties/article.md index 3339066d..34518178 100644 --- a/1-js/08-prototypes/05-getting-all-properties/article.md +++ b/1-js/08-prototypes/05-getting-all-properties/article.md @@ -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):