I have three variables: foo
, bar
, and test
.
They are the following objects: an Ext.Component, an Ext.Element, and an HTMLElement (or a DOM node).
How would you identify which one is which? E.g.
foo.isExtElement()
How would you find other two related objects for every variable? E.g. find corresponding Ext.Element and HTMLElement given you already know that
foo
is an Ext.Component. And so on.
(I can't add an [htmlelement] tag due to low reputation)
EDIT:
Added example to #1 and as per @kevhender replaced "convert" with "find".