The key.
A function which will return the value for this key if it is not present.
If the given key is present in this map, returns the value associated with it. If the given key is not present,
the defaultGenerator
parameter is called and returned.
The key.
A function which will return the value for this key if it is not present.
Whether the generated default will be stored in the map.
Retains the entries from this map that match the given predicate function, any other entries will be deleted.
whether any entries remain.
A predicate that takes a key and a value, and returns a value which will be checked for truthiness.
If this map contains the given key, checks whether the entry matches the given predicate. If it does, it is kept. If not, it's deleted.
whether any entries remain in this map.
A predicate that takes a key and a value, and returns a value which will be checked for truthiness.
Generated using TypeDoc
If the given key is present in this map, returns the value associated with it. If the given key is not present, the
defaultGenerator
parameter is called and returned.