import _extends from"babel-runtime/helpers/extends";export default function createStore(e){var t=e,n=[];return{setState:function(e){t=_extends({},t,e);for(var r=0;r<n.length;r++)n[r]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}};