Skip to content

Commit 295de22

Browse files
authored
Fix typo and formatting
1 parent fb04fe2 commit 295de22

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Object.keys, values, entries
33

4-
Let's step away from the indivitual data structures and talk about the iterations over them.
4+
Let's step away from the individual data structures and talk about the iterations over them.
55

66
In the previous chapter we saw methods `map.keys()`, `map.values()`, `map.entries()`.
77

@@ -63,8 +63,9 @@ for(let value of Object.values(user)) {
6363
}
6464
```
6565

66-
```smart header="`Object.keys/values/entries` ignore symbolic properties"
67-
Just like `for..in` loop, these methods ignore properties that use `Symbol(...)` as keys.
66+
## Object.keys/values/entries ignore symbolic properties
67+
68+
Just like a `for..in` loop, these methods ignore properties that use `Symbol(...)` as keys.
6869

6970
Usually that's convenient. But if we want symbolic keys too, then there's a separate method [Object.getOwnPropertySymbols](mdn:js/Object/getOwnPropertySymbols) that returns an array of only symbolic keys. Also, the method [Reflect.ownKeys(obj)](mdn:js/Reflect/ownKeys) returns *all* keys.
7071
```

0 commit comments

Comments
 (0)