isInteger.js 210 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 var isNumber = require('./isNumber'); /** * Check if value is an integer */ function isInteger(val){ return isNumber(val) && (val % 1 === 0); } module.exports = isInteger;