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/05-data-types/08-keys-values-entries/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ For plain objects, the following methods are available:
32
32
33
33
The first difference is that we have to call `Object.keys(obj)`, and not `obj.keys()`.
34
34
35
-
Why so? There main reason is flexibility. Remember, objects are a base of all complex structures in JavaScript. So we may have an object of our own like `order` that implements its own `order.values()` method. And we still can call `Object.values(order)` on it.
35
+
Why so? The main reason is flexibility. Remember, objects are a base of all complex structures in JavaScript. So we may have an object of our own like `order` that implements its own `order.values()` method. And we still can call `Object.values(order)` on it.
36
36
37
37
The second difference is that `Object.*` methods return "real" array objects, not just an iterable. That's mainly for historical reasons.
0 commit comments