lookupPrefix

fun lookupPrefix(namespace: String?): String?(source)

The lookupPrefix() method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and null if not.

MDN Reference