Comment

Peter Bengtsson

Thanks. That's what scott suggested above. His approach returns only true or false.

Parent comment

halbesbit

sorry i post the false code :/, delete it please. isInt=function (i) { return ((i % 1) == 0)? i:false; }