Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method EventEmitter.prototype.off
import { EventEmitter } from "https://deno.land/x/pptr@1.2.0/src/EventEmitter.ts";

Remove an event listener from firing.

Parameters

event: EventType
  • the event type you'd like to stop listening to.
handler: Handler
  • the function that should be removed.

Returns

this to enable you to chain calls.