getType()

Returns the component’s canonical type; for example, 'lightning:button'.

getType()

Type: String The component’s type.