emit(event, ...args) {
    let called = false;
    this._handlers.forEach((item) => {
      if (item.event === '*') {
        called = true;
        item.handler(event, ...args);
      }
      if (item.event === event) {
        called = true;
        item.handler(...args);
      }
    });
    return called;
  }
/**
   * Synchronously calls each of the handlers registered for the named event,
   * in the order they were registered, passing the supplied arguments to each.
   * @param {String} event
   * @param  {any[]} args
   * @returns {Boolean} true if the event had handlers, false otherwise.
   */
Synchronously calls each of the handlers registered for the named event,
in the order they were registered, passing the supplied arguments to each.
@param {String} event
@param  {any[]} args
@returns {Boolean} true if the event had handlers, false otherwise.
Synchronously calls each of the handlers registered for the named event in the order they were registered passing the supplied arguments to each . @param { String } event @param { any [] } args @returns { Boolean } true if the event had handlers false otherwise .
emit(event, ...args) {
    let called = false;
    this._handlers.forEach((item) => {
      if (item.event === '*') {
        called = true;
        item.handler(event, ...args);
      }
      if (item.event === event) {
        called = true;
        item.handler(...args);
      }
    });
    return called;
  }
emit ( event , ... args ) { let called = false ; this . _handlers . forEach ( ( item ) => { if ( item . event === '*' ) { called = true ; item . handler ( event , ... args ) ; } if ( item . event === event ) { called = true ; item . handler ( ... args ) ; } } ) ; return called ; }
Synchronously calls each of the handlers registered for the named event,
 in the order they were registered, passing the supplied arguments to each.
Synchronously calls each of the handlers registered for the named event in the order they were registered passing the supplied arguments to each .