protodict

a reliable dictionary with prototypal inheritance.

ProtoDict

A reliable dictionary with prototypal inheritance. Inspired by and using @domenic's brilliant [dict][http://npm.im/dict]

Takes an optional prototype that is expected to be a Dict or ProtoDict. Returns a fresh, delicious dictionary.

Returns the given value for the key, from itself or the prototype. If the key is not found on itself or the prototype, the default value is returned.

Set a key on the dictionary to the value.

Returns true if either the dictionary itself or its prototype has the given key.

Delete the given key from the dict itself.

Empty the dict itself.

Iterates through every key of the dictionary and its prototype.