All files / src/preds isInt.js

0% Statements 0/4
0% Branches 0/4
0% Functions 0/1
0% Lines 0/4
1 2 3 4 5 6 7 8 9 10                   
function isInt( x ) {
  if ( typeof x !== 'number' ) {
    return false;
  } else {
    return ( Math.floor( x ) === x ) && x !== Infinity;
  }
}
 
module.exports = isInt;