From 295de22b723441d58baa8d11dd5ef1e28f593452 Mon Sep 17 00:00:00 2001 From: Wyatt Pearsall Date: Thu, 8 Jun 2017 09:42:22 -0700 Subject: [PATCH] Fix typo and formatting --- 1-js/05-data-types/08-keys-values-entries/article.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/1-js/05-data-types/08-keys-values-entries/article.md b/1-js/05-data-types/08-keys-values-entries/article.md index f18c065b..88f12669 100644 --- a/1-js/05-data-types/08-keys-values-entries/article.md +++ b/1-js/05-data-types/08-keys-values-entries/article.md @@ -1,7 +1,7 @@ # Object.keys, values, entries -Let's step away from the indivitual data structures and talk about the iterations over them. +Let's step away from the individual data structures and talk about the iterations over them. In the previous chapter we saw methods `map.keys()`, `map.values()`, `map.entries()`. @@ -63,8 +63,9 @@ for(let value of Object.values(user)) { } ``` -```smart header="`Object.keys/values/entries` ignore symbolic properties" -Just like `for..in` loop, these methods ignore properties that use `Symbol(...)` as keys. +## Object.keys/values/entries ignore symbolic properties + +Just like a `for..in` loop, these methods ignore properties that use `Symbol(...)` as keys. 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. ```