code: function getView(app, view) {
      if (typeof view !== 'string') {
        return view;
      }
      if (app.isCollection) {
        view = app.getView(view);
  
      } else if (app.isList) {
        view = app.getItem(view);
  
      } else {
        view = findView(app, view);
      }
      return view;
    }
docs: Get a view from the specified collection, or list,
  or iterate over view collections until the view
  is found.