publish(...args) {
    let actionName = Array.prototype.slice.call(args).shift();

    if (!actionName) {
      throw new Error('PubSub | Action not found!!!');
    }

    let action = this.find(actionName);

    for (let subscription of action.subscriptions) {
      subscription.fn.call(...args);
    }

    return true;
  }
/**
   * Dispatches the related functions attached to the given action.
   */
Dispatches the related functions attached to the given action.
Dispatches the related functions attached to the given action .
publish(...args) {
    let actionName = Array.prototype.slice.call(args).shift();
    if (!actionName) {
      throw new Error('PubSub | Action not found!!!');
    }
    let action = this.find(actionName);
    for (let subscription of action.subscriptions) {
      subscription.fn.call(...args);
    }
    return true;
  }
publish ( ... args ) { let actionName = Array . prototype . slice . call ( args ) . shift ( ) ; if ( ! actionName ) { throw new Error ( 'PubSub | Action not found!!!' ) ; } let action = this . find ( actionName ) ; for ( let subscription of action . subscriptions ) { subscription . fn . call ( ... args ) ; } return true ; }
Dispatches the related functions attached to the given action.
Dispatches the related functions attached to the given action .