Merge pull request #1908 from kiniggit/map_set_grammar

grammar fix: a plain object
This commit is contained in:
Ilya Kantor 2020-05-18 00:02:17 +03:00 committed by GitHub
commit 873e5f77d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ let prices = Object.fromEntries([
alert(prices.orange); // 2
```
We can use `Object.fromEntries` to get an plain object from `Map`.
We can use `Object.fromEntries` to get a plain object from `Map`.
E.g. we store the data in a `Map`, but we need to pass it to a 3rd-party code that expects a plain object.