It has always baffled me why we are unable to write ES6 Maps in the following way:
new Map({
['ArrayAsKey']: {foo:bar}
})
Is there a workaround for this limitation? Or perhaps a technique that enhances the experience of utilizing these modern data structures.