0.2.6 • Published 10 months ago
is-integeric v0.2.6
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