Skip to content

Commit 762d0e5

Browse files
committed
Added reference link to mdn docs for Object.keys(user)
1 parent a829155 commit 762d0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/08-symbol/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ for (let key in user) alert(key); // name, age (no symbols)
161161
alert( "Direct: " + user[id] );
162162
```
163163

164-
`Object.keys(user)` also ignores them. That's a part of the general "hiding symbolic properties" principle. If another script or a library loops over our object, it won't unexpectedly access a symbolic property.
164+
[Object.keys(user)](mdn:js/Object/keys) also ignores them. That's a part of the general "hiding symbolic properties" principle. If another script or a library loops over our object, it won't unexpectedly access a symbolic property.
165165

166166
In contrast, [Object.assign](mdn:js/Object/assign) copies both string and symbol properties:
167167

0 commit comments

Comments
 (0)