Increase a value for the given key. If the key doesn't already exist in the Data Manager then it is increased from 0.
When the value is first set, a setdata
event is emitted.
name | type | arguments | Default | description |
---|---|---|---|---|
key | string |
The key to change the value for. |
||
amount | number | <optional> | 1 |
The amount to increase the given key by. Pass a negative value to decrease the key. |
This Data Manager instance.