You can use something like
if((x >= 0) && (typeof(result) == "number"))
Seems to have been answered here ::: Check for NaN, null and >=0 in one condition
6
solved How to differentiate null and zero value for variable in Javascript?
You can use something like
if((x >= 0) && (typeof(result) == "number"))
Seems to have been answered here ::: Check for NaN, null and >=0 in one condition
6
solved How to differentiate null and zero value for variable in Javascript?