A prototype-less object - created via Object.create(null).
Object.create(null)
This kind of object has:
Object.getPrototypeOf(obj) === null
Object.prototype
Ideal for use as a pure dictionary/hashmap, avoiding key collisions with inherited properties.
A prototype-less object - created via
Object.create(null).This kind of object has:
Object.getPrototypeOf(obj) === null)Object.prototypebehaviorIdeal for use as a pure dictionary/hashmap, avoiding key collisions with inherited properties.