kotlin-stdlib / kotlinx.dom / hasClass hasClass JS 1.4 fun Element . hasClass ( cssClass : String ) : Boolean (source) Returns true if the element has the given CSS class style in its 'class' attribute