classList

open external val classList: DOMTokenList<ClassName>(source)

The read-only classList property of the Element interface contains a live DOMTokenList collection representing the class attribute of the element. This can then be used to manipulate the class list.

MDN Reference