Function hasAttribute

  • Check if the node has the given attribute.

    Parameters

    • node: HTMLElement
    • attribute: string

    Returns boolean

    true or false

Generated using TypeDoc