Is there a special JavaScript value that will always make a comparison true?
For example using the less than operator:
true < 10 true
false < 10 true
null < 10 true
Or using the greater than operator:
true > 10 false
false > 10 false
null > 10 false
What I am looking for:
alwaysTrue < 10 true
alwaysTrue > 10 true
I want to have a value that will always return true when compared, in order to set one part of an if statement to return true by default, and then be able to switch between true and false based on other comparison values.
Although I suspect this value does not exist, I want to confirm it fully.