closes #1909
This commit is contained in:
parent
873e5f77d9
commit
fc8efbf5d5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue