1.0.4 • Published 8 years ago

is-integerish v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

isIntegerish

npm version Build Status codecov Known Vulnerabilities

A function to check if a value is an integer, or a string which parses to an integer value

Install

npm install --save is-integerish

Example

const isIntegerish = require('is-integerish');

console.log(isIntegerish(10)); // true
console.log(isIntegerish('10')); // true
console.log(isIntegerish(1.0)); // true
console.log(isIntegerish("not an integer")); // false
console.log(isIntegerish(5.5)); // false
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago