[Javascript] Using Map to set dynamic key and value
// ❎ const object = {} object[key] = value // 👍 better performance const map = new Map() map.set(key, value)
// ❎ const object = {} object[key] = value // 👍 better performance const map = new Map() map.set(key, value)