This commit is contained in:
Ilya Kantor 2020-05-18 09:12:07 +03:00
parent 873e5f77d9
commit fc8efbf5d5

View file

@ -220,7 +220,7 @@ let obj = Object.fromEntries(map.entries()); // make a plain object (*)
alert(obj.orange); // 2 alert(obj.orange); // 2
``` ```
A call to `map.entries()` returns an array of key/value pairs, exactly in the right format for `Object.fromEntries`. A call to `map.entries()` returns an iterable of key/value pairs, exactly in the right format for `Object.fromEntries`.
We could also make line `(*)` shorter: We could also make line `(*)` shorter:
```js ```js