Skip to content

An npm module to provide a function to check if a value is an integer, or a string which parses to an integer value

License

Notifications You must be signed in to change notification settings

ketsugi/isIntegerish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An npm module to provide a function to check if a value is an integer, or a string which parses to an integer value

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published