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

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation