Function isElement

  • Checks if value is likely a DOM element.

    Parameters

    • value: unknown

    Returns value is Element

    Since

    1.0.0

    Example

    isElement(document.body);
    // => true

    Example

    isElement("<body>");
    // => false