You can use such an object for a key-value map. Without the prototype chain, you can be sure that things like .toString()
do not unwittingly exist on the object. That means you can incautiously access properties on it, and you can use the in
operator instead of Object.prototype.hasOwnProperty.call
.