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

      Parameters

      Returns target is HTMLAnchorElement

      Type predicate indicating if the target is an HTMLAnchorElement

      export function isAnchorElement(target: EventTarget | null): target is HTMLAnchorElement {
      return target instanceof HTMLAnchorElement;
      }