• type {string}

    • Returns: {EventTarget} this

    Node.js-specific extension to the EventTarget class. If type is specified, removes all registered listeners for type, otherwise removes all registered listeners.