Node.js-specific extension to the EventTarget class that dispatches the arg to the list of handlers for type.
method
events.default.NodeEventTarget.emit
emit(
type: string,
arg: any
): boolean;
@returns
true if event listeners registered for the type exist, otherwise false.