is-integer
ES2015 (ES6) Number.isInteger polyfill
Last updated 4 years ago by parshap .
WTFPL OR ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-integer 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.7                                ...           latest (4 years ago)

8 Versions

  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago

Copyright 2014 - 2016 © taobao.org |