All files / src/preds isInt.ts

100% Statements 5/5
100% Branches 4/4
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7  15x   777x 98x    
export default function isInt( x ) {
  if ( typeof x !== 'number' ) {
    return false;
  } else {
    return ( Math.floor( x ) === x ) && x !== Infinity;
  }
}