module/src/event-emitter.js
/**
     * Remove a lister callback for the specified event type.
     * @param {string} type - the type of event to listen for
     * @param {EventEmitter~callback} listener - the event callback
     */
Remove a lister callback for the specified event type.
@param {string} type - the type of event to listen for
@param {EventEmitter~callback} listener - the event callback
Remove a lister callback for the specified event type . @param { string } type - the type of event to listen for @param { EventEmitter~callback } listener - the event callback
removeEventListener(type, listener) {
        if (type == null) {
            throw new TypeError(`Parameter 'type' must be provided.`);
        }
        if (typeof listener !== 'function') {
            throw new TypeError(`Parameter 'listener' must be a function.`);
        }
        const listeners = this._getListenersForType(type);
        listeners.delete(listener);
    }
removeEventListener ( type , listener ) { if ( type == null ) { throw new TypeError ( ` ` ) ; } if ( typeof listener !== 'function' ) { throw new TypeError ( ` ` ) ; } const listeners = this . _getListenersForType ( type ) ; listeners . delete ( listener ) ; }
Remove a lister callback for the specified event type.
Remove a lister callback for the specified event type .