console.log(checkValue(a));var a = 1;function checkValue(param) { if (param) { return +!!a; } else { return +!!a; }}