You can write your own function that does that. E.g. there's a builtin typeof that distiguishes numbers from strings, but not integers from floats. You could use that and further check that value.toString doesn't have '.' inside or some such...
Or rip it off from internet, I'm sure it can be found if you google.