Skip to content

Commit 53488ee

Browse files
committed
Replace 'mdn' link
1 parent 8d04d0d commit 53488ee

File tree

1 file changed

+1
-1
lines changed
  • 1-js/08-prototypes/01-prototype-inheritance

1 file changed

+1
-1
lines changed

1-js/08-prototypes/01-prototype-inheritance/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ for(let prop in rabbit) alert(prop); // jumps, then eats
287287
*/!*
288288
```
289289

290-
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`.
290+
If that's not what we want, and we'd like to exclude inherited properties, there's a built-in method [obj.hasOwnProperty(key)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty): it returns `true` if `obj` has its own (not inherited) property named `key`.
291291

292292
So we can filter out inherited properties (or do something else with them):
293293

0 commit comments

Comments
 (0)