Numeric or string key type accepted by dictionary methods.
Value type stored in the dictionary.
Creates a dictionary, optionally using an existing object as backing storage.
Numeric or string key type accepted by dictionary methods.
Value type stored in the dictionary.
Number of values currently stored in the collection.
The collection size.
Removes key from the dictionary.
Key to remove.
true when a stored key was removed.
Replaces the backing object with object.
This dictionary instance.
Checks whether key exists as an own property.
Key to check.
true when the dictionary contains key.
Checks whether the collection contains no values.
true when the collection is empty.
Visits dictionary values in Object.keys() order.
Callback result that should stop traversal early.
Whether traversal should run from last key to first key.
Callback invoked for each value and string key.
breakFlag when traversal stops early, otherwise !breakFlag.
Reverse traversal visits the keys returned by keys from the end of the array to the beginning.
Dictionary backed by a plain object.
Remarks
Keys are limited to numbers and strings because values are stored as object properties. Iteration keys are returned as strings, matching
Object.keys(). All input objects are copied into a null-prototype object before storage.Example