π§ API Referenceπ Generated API DocsUtilitiesutils/domutils/dom/domHelpersfunctionsFunction: addClass()On this pageFunction: addClass() function addClass(el: unknown, className: string): void; Defined in: utils/dom/domHelpers.ts:22 Add a class to an element if present. Parametersβ elβ unknown classNameβ string Returnsβ void Throwsβ Error if className is empty.