NodeeventsEventEmitter.listenerCountmethod EventEmitter.listenerCount#EventEmitter.listenerCount<K>(eventName: Key<K, T>,listener?: Listener2<K, T>,): numberReturns the number of listeners listening for the event named eventName. If listener is provided, it will return how many times the listener is found in the list of the listeners of the event. Type Parameters ##KParameters ##eventName: Key<K, T>The name of the event being listened for optional#listener: Listener2<K, T>The event handler function Return Type #number
method EventEmitter.listenerCount#EventEmitter.listenerCount<K>(eventName: Key<K, T>,listener?: Listener2<K, T>,): numberReturns the number of listeners listening for the event named eventName. If listener is provided, it will return how many times the listener is found in the list of the listeners of the event. Type Parameters ##KParameters ##eventName: Key<K, T>The name of the event being listened for optional#listener: Listener2<K, T>The event handler function Return Type #number