You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/04-object-basics/08-symbol/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ for (let key in user) alert(key); // name, age (no symbols)
161
161
alert( "Direct: "+ user[id] );
162
162
```
163
163
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.
165
165
166
166
In contrast, [Object.assign](mdn:js/Object/assign) copies both string and symbol properties:
0 commit comments