sahara-action-store
v0.1.0
Published
```js import ActionStore from 'sahara-action-store';
Downloads
1
Readme
Example of use
import ActionStore from 'sahara-action-store';
const actionStore = new ActionStore();
// register function
actionStore.register('foo', () => {
return 'foo';
});
if (actionStore.has('foo')) {
// call function
const result = actionStore.call('foo');
// or get function
const foo = actionStore.get('foo');
foo();
}
// unregister function
actionStore.unregister('foo');