Skip to main content
The 2024 Developer Survey results are live! See the results
3 votes
Accepted

Map not being set with values returned in a promise

The Map object doesn't like to JSON.stringify. See this Stack Overflow Q&A. Basically, JSON.stringify treats a Map as a normal Object, and doesn't know how to serialize the key-value pairs. That ...
sfdcfox's user avatar
  • 497k
1 vote

Map not being set with values returned in a promise

This is because for Javascript's Map has no No native support for serialization or parsing. -MDN Doc Quote from here This is why when you console.log the Map after JSON.stringify, its returning an ...
prem22's user avatar
  • 674

Only top scored, non community-wiki answers of a minimum length are eligible