@lesjoursfr/browser-tools
    Preparing search index...

    Function hasTagName

    • Check if the node has the given tag name, or if its tag name is in the given list.

      Parameters

      • node: HTMLElement

        the element to check

      • tags: string | string[]

        a tag name or a list of tag name

      Returns boolean

      true if the node has the given tag name