This maybe isn't as performant as the % answer, which prevents you from having to convert to a string first, but I haven't seen anyone post it yet, so here's another option that should work fine:
function isInteger(num) {
return num.toString().indexOf('.') === -1;
}