offStatusChange(callback) {
    if (!callback) {
      this.off();
    } else {
      [ACCEPTED, REJECTED, CANCELED].forEach((event) => {
        this.off(event, callback);
      });
    }
  }
/**
   * Un-register a callback for all status change events
   * @param {function} [callback]
   */
Un-register a callback for all status change events
@param {function} [callback]
Un - register a callback for all status change events @param { function } [ callback ]
offStatusChange(callback) {
    if (!callback) {
      this.off();
    } else {
      [ACCEPTED, REJECTED, CANCELED].forEach((event) => {
        this.off(event, callback);
      });
    }
  }
offStatusChange ( callback ) { if ( ! callback ) { this . off ( ) ; } else { [ ACCEPTED , REJECTED , CANCELED ] . forEach ( ( event ) => { this . off ( event , callback ) ; } ) ; } }
Un-register a callback for all status change events
 @param {function} [callback]
Un - register a callback for all status change events @param { function } [ callback ]