"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends2=require("babel-runtime/helpers/extends"),_extends3=_interopRequireDefault(_extends2);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createStore(e){var r=e,n=[];return{setState:function(e){r=(0,_extends3.default)({},r,e);for(var t=0;t<n.length;t++)n[t]()},getState:function(){return r},subscribe:function(t){return n.push(t),function(){var e=n.indexOf(t);n.splice(e,1)}}}}exports.default=createStore,module.exports=exports.default;