how to map an array into an object code example Example: javascript map to object Object.fromEntries(Map)