is-integeric
v0.2.6
Published
Lightweight test to see if a number is integer-ish.
Downloads
20
Readme
is-integeric
Lightweight, simple test to see if an input is an integer or can be converted to one.
import isIntegeric from 'is-integeric';
console.log(isIntegeric(5)); // true
console.log(isIntegeric('5')); // true
console.log(isIntegeric('5.5')); // true, because it can be floored
console.log(isIntegeric('five')); // false