1.3.0 • Published 4 years ago
@querek/collections v1.3.0
Collection's module
by Querek#6666
How to use?
-import module
- create new instance: var test = new Collection();
Methods:
- add(key,val) - add to Collection.
- get(key) - return a value from
key
. - remove(key) - remove the
key
from collection. - list() - list collection value.
- has(key) - Collection has
key
? - destroy() - Remove all items from collection.
- set(key, newValue) - Set a new value of element in collection.
Changelog:
- v.1.0.0 - created module;
- v.1.1.0 - updated readme;
- v.1.2.0 - added destroy() method.
- v.1.3.0 - added set() method.