hasAttribute

fun hasAttribute(qualifiedName: String): Boolean(source)

The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not.

MDN Reference