Extract the event target element from an Event.
element.addEventListener('click', (event) => { const eventTarget = extractEventTarget(event, HTMLButtonElement);}); Copy
element.addEventListener('click', (event) => { const eventTarget = extractEventTarget(event, HTMLButtonElement);});
@augment-vir/web
Extract the event target element from an Event.