# is-length-x

> Checks if `value` is a valid array-like length.

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

## Install

```sh
npm install is-length-x
pnpm add is-length-x
yarn add is-length-x
bun add is-length-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 | 3.2.2 |
| Published | 2019-08-28 |
| First published | 2017-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.11.4 |
| Dependencies | 1 |
| Unpacked size | 233.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | number, isLength, module, javascript, nodejs, browser |

## Links

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

## Dependencies (1)

- [is-safe-integer-x](https://npm.io/package/is-safe-integer-x.md) ^2.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

- 3.2.2 (latest) — 2019-08-28
- 3.2.1 — 2019-08-20
- 3.2.0 — 2019-08-14
- 3.1.0 — 2019-08-14
- 3.0.26 — 2019-08-05
- 3.0.25 — 2019-07-31
- 3.0.24 — 2019-07-27
- 3.0.23 — 2019-07-27
- 3.0.22 — 2019-07-27
- 3.0.21 — 2019-07-26
- 3.0.20 — 2019-07-25
- 3.0.19 — 2019-07-24
- 3.0.18 — 2019-07-24
- 3.0.17 — 2019-07-24
- 3.0.16 — 2019-07-22
- … 19 more at https://npm.io/package/is-length-x/versions

## README

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

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

## is-length-x

Checks if `value` is a valid array-like length.

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

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

This method checks if `value` is a valid array-like length.

**Kind**: Exported function  
**Returns**: <code>boolean</code> - Returns `true` if `value` is a valid length, else `false`.

| Param | Type            | Description         |
| ----- | --------------- | ------------------- |
| value | <code>\*</code> | The value to check. |

**Example**

```js
import isLength from 'is-length-x';

console.log(isLength(3)); // => true
console.log(isLength(Number.MIN_VALUE)); // => false
console.log(isLength(Infinity)); // => false
console.log(isLength('3')); // => false
```

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