hasAttribute

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

Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.

MDN Reference