Comment

gonzoyumo

except when you want to consider "0" is an integer (which does)

Parent comment

msangel

function isInteger(s){ return (s%(parseInt(s)/Number(s)))===0; } is perfect solution (=