unsubscribe(actionName, fnName) {
    if (!fnName) {
      this.actions = this.actions.filter(action => action.name !== actionName);
      return;
    }

    let action = this.find(actionName);

    action.subscriptions = action.subscriptions.filter(subscription => subscription.fnName !== fnName);
  }
/**
   * Remove complete actions or some of their related functions.
   *
   * @param  {String}   actionName String represents action name.
   * @param  {Funcion}  fnName     String represents function to be removed.
   */
Remove complete actions or some of their related functions.
@param  {String}   actionName String represents action name.
@param  {Funcion}  fnName     String represents function to be removed.
Remove complete actions or some of their related functions . @param { String } actionName String represents action name . @param { Funcion } fnName String represents function to be removed .
unsubscribe(actionName, fnName) {
    if (!fnName) {
      this.actions = this.actions.filter(action => action.name !== actionName);
      return;
    }
    let action = this.find(actionName);
    action.subscriptions = action.subscriptions.filter(subscription => subscription.fnName !== fnName);
  }
unsubscribe ( actionName , fnName ) { if ( ! fnName ) { this . actions = this . actions . filter ( action => action . name !== actionName ) ; return ; } let action = this . find ( actionName ) ; action . subscriptions = action . subscriptions . filter ( subscription => subscription . fnName !== fnName ) ; }
Remove complete actions or some of their related functions.
Remove complete actions or some of their related functions .