Skip to content

Commit 4f584b0

Browse files
authored
Fix typo, 08-keys-values-entries
1 parent 121c264 commit 4f584b0

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/08-keys-values-entries

1 file changed

+1
-1
lines changed

1-js/05-data-types/08-keys-values-entries/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For plain objects, the following methods are available:
3232

3333
The first difference is that we have to call `Object.keys(obj)`, and not `obj.keys()`.
3434

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.
3636

3737
The second difference is that `Object.*` methods return "real" array objects, not just an iterable. That's mainly for historical reasons.
3838

0 commit comments

Comments
 (0)