UNPKG

stockroom

Version:

Offload your store management to a worker.

3 lines (2 loc) • 603 B
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.stockroom=n()}(this,function(){return function(t){var n=function(t){return"function"!=typeof Event||!(t instanceof Event)};return t.action=function(e){return function(){for(var o=[],f=arguments.length;f--;)o[f]=arguments[f];var i="function"==typeof e?e.apply(void 0,o):e;"string"==typeof i&&(i={type:i,params:o.filter(n)}),i&&!i.type?t.setState(i,!1,e.name,!0):(r=t.actions)[i.type].apply(r,i.params||[i.payload]);var r}},t}}); //# sourceMappingURL=index.umd.js.map