ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...
    • Type guard to check if an EventTarget is an HTMLInputElement.

      Parameters

      Returns target is HTMLInputElement

      Type predicate indicating if the target is an HTMLInputElement

      export function isInputElement(target: EventTarget | null): target is HTMLInputElement {
      return target instanceof HTMLInputElement;
      }