Let's say we have this function:
loadView : function(view) {
this.view && this.view.remove();
this.view = view;
}
What does the first line do? For example if the line was this.view && this.otherView, it would return true if both view and otherView exists and false if one of them doesn't, but now there is a function being called at the end, which is confusing me.
Is the first line equivalent to:
if(this.view) {this.view.remove()}
?