Skip to content

parshap/js-is-integer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-integer build status

ES2015 (ES6) Number.isInteger polyfill implemented in ES3.

Example

var isInteger = require("is-integer");
isInteger("hello") // -> false
isInteger(4) // -> true
isInteger(4.0) // -> true
isInteger(4.1) // -> false

API

var isInteger = require("is-integer")

Determines whether the provided value is an integer.

See Number.isInteger.

Install

npm install is-integer

About

ES2015 (ES6) Number.isInteger polyfill

Resources

License

WTFPL, Unknown licenses found

Licenses found

WTFPL
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published