kotlin-stdlib / org.w3c.dom / CustomElementRegistry / whenDefined whenDefined JS 1.1 fun whenDefined ( name : String ) : Promise < Unit > (source)