MremoveEventListener
Bun

method

Performance.removeEventListener

removeEventListener<K extends 'resourcetimingbufferfull'>(
type: K,
listener: (this: Performance, ev: PerformanceEventMap[K]) => any,
options?: boolean | EventListenerOptions
): void;

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions
): void;

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference