No problem.
It's just checking that the input is not ±Infinity, "", true, false, null or undefined.
But I can't believe it's that difficult in JavaScript to check for an integer - it's a built-in function in most other languages.
I will still use this solution as it should still work for things like `1.0` (some on StackOverflow don't).