ES6 maps do not seem to work as described in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map; specifically, var d = new Map(); d[ [ 1, 2, ] ] = 42; will cause a key '1,2' to be created, and allows to retrieve the value with d[ '1,2' ]. Moreover, d.forEach will not iterate, d.size will always be 0, d.has(...) always returns false, and both d.keys() and d.values() will always return an empty object {}, which is wrong on more than one level.
ES6 maps do not seem to work as described in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map; specifically,
var d = new Map(); d[ [ 1, 2, ] ] = 42;will cause a key'1,2'to be created, and allows to retrieve the value withd[ '1,2' ]. Moreover,d.forEachwill not iterate,d.sizewill always be0,d.has(...)always returnsfalse, and bothd.keys()andd.values()will always return an empty object{}, which is wrong on more than one level.