JavaScript single line if else condition [closed]
is there any elegant way to write this simple condition, may be a one liner, just want to save few lines of code.
if(this.hasChange) {
this.showResetAll = true;
} else {
this.showResetAll = false;
}
Comments
Post a Comment