Remove the value for the given key.
If the key is found in this Data Manager it is removed from the internal lists and a
removedata
event is emitted.
You can also pass in an array of keys, in which case all keys in the array will be removed:
this.data.remove([ 'gold', 'armor', 'health' ]);
name | type | description |
---|---|---|
key | string | Array.<string> |
The key to remove, or an array of keys to remove. |
This Data Manager instance.