Created
November 28, 2013 02:25
-
-
Save otiai10/7686390 to your computer and use it in GitHub Desktop.
is really true?
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
var _int1 = 1; | |
var _int2 = 2; | |
var _str = "hoge"; | |
var _boo = true; | |
isTrue(_int1, '1'); | |
isTrue(_int2, '2'); | |
isTrue(_str, 'str'); | |
isTrue(_boo, 'bool'); | |
function isTrue(v, name){ | |
if (v == true) { | |
console.log(name + " == IS TRUE "); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment