UNPKG

stockroom

Version:

Offload your store management to a worker.

3 lines (2 loc) 599 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,r="function"==typeof e?e.apply(void 0,o):e;"string"==typeof r&&(r={type:r,params:o.filter(n)}),r&&!r.type?t.setState(r,!1,e.name,!0):(i=t.actions)[r.type].apply(i,r.params||[r.payload])}},t}}); //# sourceMappingURL=index.umd.js.map