Type guard to check if an EventTarget is an HTMLButtonElement.
The EventTarget to check
Type predicate indicating if the target is an HTMLButtonElement
export function isButtonElement(target: EventTarget | null): target is HTMLButtonElement { return target instanceof HTMLButtonElement;} Copy
export function isButtonElement(target: EventTarget | null): target is HTMLButtonElement { return target instanceof HTMLButtonElement;}
Type guard to check if an EventTarget is an HTMLButtonElement.