0

What is the difference between value and !!value in angular? What is the result or meaning of the following code?

return !!this.value;
//can I use this.value for this statement?

and

if (!!value){//can I use if(this.value) for this statement?
 //code
}
Geethu R
  • 1
  • 3

1 Answers1

1

It just converts that this.value into boolean value.

critrange
  • 5,652
  • 2
  • 16
  • 47