ows
Simple observable like WeakSet
npm i ows
Usage
; const ows = ; ows;ows; // => emit change event
Methods
.on(handler)
inherit EventEmitter
Returns ows
.off(handler)
inherit EventEmitter
Returns ows
.add(payload);
add payload
successful emit change
event
Returns ows
.delete(payload);
delete payload
successful emit change
event
Returns Bool
.has(payload);
has payload
Returns Bool
.clear(payload);
clear set
successful emit change
event
Returns ows
Contributing
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
License
© sugarshin