sesaparcours
    Preparing search index...
    • Checks if an element has the specified CSS class. Similar to Closure's goog.dom.classes.has, except it handles SVG elements.

      Parameters

      • element: Element

        DOM element to check.

      • className: string

        Name of class to check.

      Returns boolean

      True if class exists, false otherwise.