Created
August 30, 2012 03:57
-
-
Save Mr2P/3522184 to your computer and use it in GitHub Desktop.
check a boolean variable is true or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // javascript: check a condition variable is set to true or not | |
| x = !!( 'undefined' != typeof x && x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment