nii

number-is-integer

ES2015 Number.isInteger() ponyfill

Showing:

Readme

number-is-integer

ES2015 Number.isInteger() ponyfill

Install

$ npm install number-is-integer

Usage

const numberIsInteger = require('number-is-integer');

numberIsInteger(1);
//=> true

numberIsInteger(1.5);
//=> false