Object.create(null) for dictionaries is only safe in ES6+ (prior to ES6, you have to escape the key '__proto__').

Don’t forget there’s also Map!

Sign in to participate in the conversation

Generalistic and moderated instance. All opinions are welcome, but hate speeches are prohibited. Users who don't respect rules will be silenced or suspended, depending on the violation severity.