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