Re:KindScript – A kinder JavaScript experience
by joshuacc on Sunday March 20, 2016 @12:11PM
(#11323421)
JavaScript objects aren't associative arrays. They inherit property values from their prototype. Not just __proto__, but hasOwnProperty, etc. If you want to abuse objects in this way, it makes sense that you need a special approach to opt out of inheritance.
A better approach is to just use Map.
var m = new Map();
Why should you need to know that much about the guts of the language just to create an associative array that works properly?