I have a Map like this:
Map
const m = new Map(); m.set(\'key1\', {}) . m.set(\'keyN\' {})
the Mapcan have 1 or many i
It could also done using spread feature at ES6 and next versions
const m = new Map(); m.set('key1', 1); m.set('key2', 2); console.log([...m][0]); // ['key1', 1]