getType()

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

Signature 

getType()

Returns 

Type: String The component’s type.