Determine whether the passed value is an integer.
npm install is-integer-x href="https://travis-ci.org/Xotic750/is-integer-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/is-integer-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/is-integer-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/is-integer-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/is-integer-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/is-integer-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/is-integer-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/is-integer-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
Determine whether the passed value is an integer.
This method determines whether the passed value is an integer.
Kind: Exported function
Returns: boolean - A Boolean indicating whether or not the given value is an integer.
| Param | Type | Description |
| ----- | --------------- | -------------------------------------------- |
| value | \* | The value to be tested for being an integer. |
Example
``js
import isInteger from 'is-integer-x';
console.log(isInteger(0)); // true
console.log(isInteger(1)); // true
console.log(isInteger(-100000)); // true
console.log(isInteger(0.1)); // false
console.log(isInteger(Math.PI)); // false
console.log(isInteger(NaN)); // false
console.log(isInteger(Infinity)); // false
console.log(isInteger(-Infinity)); // false
console.log(isInteger('10')); // false
console.log(isInteger(true)); // false
console.log(isInteger(false)); // false
console.log(isInteger([1])); // false
``