CollectionMap
An extension of Map that auto-initializes new values with empty collections and auto-removes empty collections being set
defaultdict2
Dictionary-like object with a handler for missing keys
undefined-killer
Simple solution to this problem: "TypeError: Cannot set property 'x' of undefined"