Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isDomNode

  • isDomNode(obj: unknown): boolean
  • Checks if the given object is a DOM node.

    example

    isDomNode(document.body); // true isDomNode(document); // false isDomNode('not DOM node'); // false isDomNode(0); // false

    Parameters

    • obj: unknown

      The object to check.

    Returns boolean

    Whether the object is a DOM node.

Legend

  • Function

Generated using TypeDoc