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

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept