grammar fix: a plain object

This commit is contained in:
kiniggit 2020-05-16 17:26:56 -03:00
parent aabbec16cc
commit ec77f84741

View file

@ -198,7 +198,7 @@ let prices = Object.fromEntries([
alert(prices.orange); // 2 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. 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.