a1exlism
3/5/2018 - 1:54 AM

JS_isInt

function isInt(i) {
  return (typeof i == "number") && !(i % 1) && !isNaN(i);
}