As of ES6, JavaScript has a proper Map object. I don\'t see a way to use a literal notation though, as you could with an Array or an Object. Am I missing it, or does it not
There is a way to do it, like we do with literals
const fruits = new Map(Object.entries({apples: 1, bananas: 2}))