# is-integer-x

> Determine whether the passed value is an integer.

Latest version **2.2.2** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-integer-x
pnpm add is-integer-x
yarn add is-integer-x
bun add is-integer-x
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.2 |
| Published | 2019-08-28 |
| First published | 2017-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.11.4 |
| Dependencies | 2 |
| Unpacked size | 229.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | number, isInteger, module, javascript, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/is-integer-x
- Repository: https://github.com/Xotic750/is-integer-x
- Issues: https://github.com/Xotic750/is-integer-x/issues
- npm.io page: https://npm.io/package/is-integer-x

## Dependencies (2)

- [is-finite-x](https://npm.io/package/is-finite-x.md) ^4.2.1
- [to-integer-x](https://npm.io/package/to-integer-x.md) ^4.2.2

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 2.2.2 (latest) — 2019-08-28
- 2.2.1 — 2019-08-20
- 2.2.0 — 2019-08-14
- 2.1.0 — 2019-08-14
- 2.0.27 — 2019-08-05
- 2.0.26 — 2019-07-31
- 2.0.25 — 2019-07-27
- 2.0.24 — 2019-07-27
- 2.0.23 — 2019-07-27
- 2.0.22 — 2019-07-26
- 2.0.21 — 2019-07-25
- 2.0.20 — 2019-07-24
- 2.0.19 — 2019-07-24
- 2.0.18 — 2019-07-24
- 2.0.17 — 2019-07-22
- … 20 more at https://npm.io/package/is-integer-x/versions

## README

<a
  href="https://travis-ci.org/Xotic750/is-integer-x"
  title="Travis status">
<img
  src="https://travis-ci.org/Xotic750/is-integer-x.svg?branch=master"
  alt="Travis status" height="18">
</a>
<a
  href="https://david-dm.org/Xotic750/is-integer-x"
  title="Dependency status">
<img src="https://david-dm.org/Xotic750/is-integer-x/status.svg"
  alt="Dependency status" height="18"/>
</a>
<a
  href="https://david-dm.org/Xotic750/is-integer-x?type=dev"
  title="devDependency status">
<img src="https://david-dm.org/Xotic750/is-integer-x/dev-status.svg"
  alt="devDependency status" height="18"/>
</a>
<a
  href="https://badge.fury.io/js/is-integer-x"
  title="npm version">
<img src="https://badge.fury.io/js/is-integer-x.svg"
  alt="npm version" height="18">
</a>
<a
  href="https://www.jsdelivr.com/package/npm/is-integer-x"
  title="jsDelivr hits">
<img src="https://data.jsdelivr.com/v1/package/npm/is-integer-x/badge?style=rounded"
  alt="jsDelivr hits" height="18">
</a>
<a
  href="https://bettercodehub.com/results/Xotic750/is-integer-x"
  title="bettercodehub score">
<img src="https://bettercodehub.com/edge/badge/Xotic750/is-integer-x?branch=master"
  alt="bettercodehub score" height="18">
</a>
<a
  href="https://coveralls.io/github/Xotic750/is-integer-x?branch=master"
  title="Coverage Status">
<img src="https://coveralls.io/repos/github/Xotic750/is-integer-x/badge.svg?branch=master"
  alt="Coverage Status" height="18">
</a>

<a name="module_is-integer-x"></a>

## is-integer-x

Determine whether the passed value is an integer.

<a name="exp_module_is-integer-x--module.exports"></a>

### `module.exports(value)` ⇒ <code>boolean</code> ⏏

This method determines whether the passed value is an integer.

**Kind**: Exported function  
**Returns**: <code>boolean</code> - A Boolean indicating whether or not the given value is an integer.

| Param | Type            | Description                                  |
| ----- | --------------- | -------------------------------------------- |
| value | <code>\*</code> | 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
```

---
_Source: https://npm.io/package/is-integer-x · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
