getName

The getName() method of the CustomElementRegistry interface returns the name for a previously-defined custom element.

MDN Reference