⬅︎ Back to isInt() JavaScript function
Thanks. That's what scott suggested above. His approach returns only true or false.
sorry i post the false code :/, delete it please. isInt=function (i) { return ((i % 1) == 0)? i:false; }
Comment
Thanks. That's what scott suggested above. His approach returns only true or false.
Parent comment
sorry i post the false code :/, delete it please. isInt=function (i) { return ((i % 1) == 0)? i:false; }