Methods
get(key) → {Object}
Get value by the given key.
Complexity: O(log N).
Complexity: O(log N).
Parameters:
| Name | Type | Description |
|---|---|---|
key |
Number | A key to be searched for. |
Returns:
A value which will be returned based on the key.
- Type
- Object
put(key, value)
Add value associated with a given key.
Complexity: O(log N).
Complexity: O(log N).
Parameters:
| Name | Type | Description |
|---|---|---|
key |
Number | Key. |
value |
Object | Value. |