Height of the tree.
AVL Tree core routines
Number of elements in the tree.
Removes all key-value pairs from the tree
Delete element with key if present, otherwise do nothing.
Key to remove.
Get a range of entries from a start key (inclusive) to an end key (exclusive by default). If end is greater than max key, include start to max inclusive.
Key for lower bound (inclusive).
Key for upper bound (exclusive by default).
Set to false if upper bound should be exclusive, true if upper bound should be inclusive
Range of entries corresponding to keys within start and end bounds.
Retrieves a related value for a given key or uses the defaultValue
if not key is found
Key of the element.
Value for the given key or the default value.
Retrieves the related value for a given key, or throws error "key not found"
Key of the element.
Value for the given key or the default value.
Whether the key is present in the tree.
Returns the minimum key that is strictly greater than the key.
Throws if empty or if key is higher than or equal to this.max()
.
Key for upper bound (exclusive).
Minimum key that is strictly greater than given key.
Returns the minimum key that is greater or equal than the key.
Throws if empty or if key is higher than this.max()
.
Key for upper bound (inclusive).
Minimum key that is greater or equal to given key.
Get a range of keys from a start key (inclusive) to an end key (exclusive by default). If end is greater than max key, include start to max inclusive.
Key for lower bound (inclusive).
Key for upper bound (exclusive by default).
Set to false if upper bound should be exclusive, true if upper bound should be inclusive
Range of keys within start and end bounds.
Returns the maximum key that is strictly less than the key.
Throws if empty or if key is lower than or equal to this.min()
.
Key for lower bound (exclusive).
Maximum key that is strictly less than given key.
Returns the maximum key that is less or equal than the key.
Throws if empty or if key is lower than this.min()
.
Key for lower bound (inclusive).
Maximum key that is less than or equal to given key.
Returns maximum key. Throws if tree is empty.
Maximum key.
Returns minimum key. Throws if tree is empty.
Minimum key.
If key is not present in the tree, a new node is added with the value. Otherwise update the node with the new value.
Key of the element.
The new value of the element.
Get a range of values from a start key (inclusive) to an end key (exclusive by default). If end is greater than max key, include start to max inclusive.
Key for lower bound (inclusive).
Key for upper bound (exclusive by default).
Set to false if upper bound should be exclusive, true if upper bound should be inclusive
Range of values corresponding to keys within start and end bounds.
Generated using TypeDoc
A string name is used as a prefix for writing keys to storage.