function subscribe (run) {
      var state = store.get()

      subscribers.push(run)
      run(state[key])

      return function () {
        subscribers = subscribers.filter(function (i) {
          return i !== run
        })
      }
    }
/**
     * Subscription for the state
     *
     * @param {function} run Callback function
     *
     */
Subscription for the state
@param {function} run Callback function
Subscription for the state @param { function } run Callback function
function subscribe (run) {
      var state = store.get()
      subscribers.push(run)
      run(state[key])
      return function () {
        subscribers = subscribers.filter(function (i) {
          return i !== run
        })
      }
    }
function subscribe ( run ) { var state = store . get ( ) subscribers . push ( run ) run ( state [ key ] ) return function ( ) { subscribers = subscribers . filter ( function ( i ) { return i !== run } ) } }
Subscription for the state
 @param {function} run Callback function
Subscription for the state @param { function } run Callback function