In case we need to get the current view displayed on the site. We can use getLayout().currentView; which will be useful to work with extensions based on different views. If we are on checkout we get the view from that section similarly on the pages
let container = SC.Application(Object.keys(SC._applications)[0]);
let currentView = container.getLayout().currentView;
Sample
