2023-04-13

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;
}



No comments:

Post a Comment