Members
Methods
(static) exists(key) → {Bool}
Return true if the specified key exists in StructMap
Parameters:
Name | Type | Description |
---|---|---|
key |
Any
|
Returns:
- Type:
-
Bool
(static) find(value, funcopt) → {Any}
Returns the first key associated with value. If no such key exists then the function will return undefined.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
Any
|
||
func |
Method
|
<optional> |
function of two arguments to compare Map item with value |
Returns:
- Type:
-
Any
key associated with value
(static) get(key) → {Any}
Returns value associated with the key. If no such key exists then the function will return undefined.
Parameters:
Name | Type | Description |
---|---|---|
key |
Any
|
Returns:
- Type:
-
Any
(static) is_empty() → {Bool}
Return false if StructMap has any items, true if it does not.
Returns:
- Type:
-
Bool
(static) items() → {IteratorDict}
Returns Iterator of key-value pairs
Returns:
- Type:
-
IteratorDict
(static) keys() → {Iterator}
Returns Iterator of keys
Returns:
- Type:
-
Iterator
(static) remove(key)
Remove key from the StructMap
Parameters:
Name | Type | Description |
---|---|---|
key |
Any
|