A co tak toto:
Kód:
function numberIsInteger(number) {
    return (Math.floor(number) == number);
}
Inak, to co povedal KtK by malo tiez fungovat...