capint
3/27/2016 - 5:25 PM

JavaScript >> Check falsy value

JavaScript >> Check falsy value

var val; //falsy values can be false, "", NaN, undefined, null
var x = Boolean(val);