function removeEventListener

Remove a previously registered event listener from the global scope

const lstnr = () => { console.log('hello'); };
addEventListener('load', lstnr);
removeEventListener('load', lstnr);

Parameters

type: string
optional
options: boolean | EventListenerOptions | undefined