Map literal

Mohsen Azimi me at
Tue Oct 27 22:55:37 UTC 2015

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'];
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list