The internet wasn't too kind to me this time. This is all I could find. So:
I know it is possible to get the runtime generated unique Id of the corresponding component like so:
var globalId = component.getGlobalId();
But, is it possible to get the name of the component programmatically in JS? That is, if my component is called 'ProjectView.cmp', the method should return 'ProjectView'.