new Register(dataopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Object |
<optional> |
{} | initial values |
- Source:
Methods
add(key, value) → {Register}
Parameters:
Name | Type | Description |
---|---|---|
key |
String | |
value |
* |
- Source:
Returns:
this
- Type
- Register
delete(key) → {Register}
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
this
- Type
- Register
get(key) → {*}
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
value
- Type
- *
has(key) → {Boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
register has key
- Type
- Boolean
list() → {Array.<String>}
- Source:
Returns:
list of keys
- Type
- Array.<String>
remove(key) → {Register}
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
this
- Type
- Register
set(key, value) → {Register}
Parameters:
Name | Type | Description |
---|---|---|
key |
String | |
value |
* |
- Source:
Returns:
this
- Type
- Register