Skip to main content
Go to Latest
method default.prototype.listenerCount
import { default } from "https://deno.land/std@0.147.0/node/events.ts";

Returns the number of listeners listening to the event named eventName.

Parameters

eventName: string | symbol

The name of the event being listened for

Returns

number