I'm using Maps a lot now and I was thinking why there is no "easy" way of declaring them like objects and arrays.
I'm sure I'm not the first one who came up with the idea of having Map literal declaration. There are many ways we can introduce new syntax for declaring Maps via a literal syntax such as: ``` let map = [window: 'window', document: 'document']; ``` or ``` let map = {{window: 'window', document: 'document'}} ``` and possibly many more. I searched the discussions but couldn't find a topic on this. Have you discussed this before?
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss