Simple observable like WeakSet
npm i ows
import OWS from 'ows';
const ows = new OWS();
ows.on(set => {});
ows.add('val'); // => emit change event
inherit EventEmitter
Returns ows
inherit EventEmitter
Returns ows
add payload
successful emit change
event
Returns ows
delete payload
successful emit change
event
Returns Bool
has payload
Returns Bool
clear set
successful emit change
event
Returns ows
- 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
© sugarshin