You could just do:
```
if (value > 0 && Math.floor(value) !== value) {
    return false;
} else if (value < 0 && Math.ceil(value) !== value) {
    return false;
}
```