function removeEventListener
Remove a previously registered event listener from the global scope
const listener = () => { console.log('hello'); };
addEventListener('load', listener);
removeEventListener('load', listener);
Type Parameters
🔗
K extends keyof WindowEventMap
Parameters
🔗
listener: (this: Window, ev: WindowEventMap[K]) => any
🔗
options: boolean | EventListenerOptions
Return Type
🔗
void
Parameters
🔗
type: string
🔗
listener: EventListenerOrEventListenerObject
🔗
options: boolean | EventListenerOptions
Return Type
🔗
void