map string to object javascript code example Example: javascript map to object Object.fromEntries(Map)