82
rated 0 times
[
88]
[
6]
/ answers: 1 / hits: 95590
/ 10 Years ago, thu, september 25, 2014, 12:00:00
What's the best way to check if myvar
javascript variable === false
or not (it may be undefined as well).
if (myvar === false)
would be fine but myvar
it could be undefined. Only false
value is acceptable, not undefined.
Any shorter than if (typeof myvar !== undefined && myvar === false)
?
More From » variables