4 ms·
Oh lord… so you group by a Number, but the map-key becomes a String. Sounds like idiomatic JavaScript
by jbverschoor 5y ago
Oh lord… so you group by a Number, but the map-key becomes a String. Sounds like idiomatic JavaScript
- deleted 5y ago[deleted]
- throw_m239339 5y agoThis isn't a map, Javascript has a dedicated map type. In JavaScript, Objects keys can only be strings or symbols.
- saranshk 5y agogroupByToMap would be useful in that case as pointed out in another comment. Updated the post with that.
- ojr 5y agoJavascript has been so widely used for so long, there are two types of languages one that people hate and one that people don’t use