# is-positive-array

> Checks whether a value is an array with more than zero items

Latest version **1.0.12** (published 2023-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-positive-array
pnpm add is-positive-array
yarn add is-positive-array
bun add is-positive-array
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2023-02-02 |
| First published | 2022-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | kas-elvirov |
| Keywords | array |

## Links

- npm: https://www.npmjs.com/package/is-positive-array
- Repository: https://github.com/kas-elvirov/is-positive-array
- Homepage: https://github.com/kas-elvirov/is-positive-array#readme
- Issues: https://github.com/kas-elvirov/is-positive-array/issues
- npm.io page: https://npm.io/package/is-positive-array

## Recent versions

- 1.0.12 (latest) — 2023-02-02
- 1.0.9 — 2022-10-01
- 1.0.8 — 2022-10-01
- 1.0.7 — 2022-10-01
- 1.0.2 — 2022-10-01
- 1.0.1 — 2022-10-01
- 1.0.0 — 2022-10-01

## README

![npm bundle size](https://img.shields.io/bundlephobia/min/is-positive-array) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/kas-elvirov/is-positive-array) <!-- ![npm-donwloads-per-week](https://img.shields.io/npm/dw/is-positive-array) --> ![npm-donwloads-per-year](https://img.shields.io/npm/dy/is-positive-array)

---

# is-positive-array

Checks whether a value is an array with more than zero items

## Install

```
$ npm install --save is-positive-array
```
or
```
$ yarn add is-positive-array
```

## API

### isPositiveArray(incomingValue: unknown): boolean

#### incomingValue

Type: `unknown`

## Usage

#### import

```js
    import isPositiveArray from 'is-positive-array';
    // or
    var isPositiveArray = require('is-positive-array');
```

#### positive array

```js
    import isPositiveArray from 'is-positive-array';

    const result = isPositiveArray([1, 2, 3]);

    console.log(result);
    // true
```

#### empty array

```js
    import isPositiveArray from 'is-positive-array';

    const result = isPositiveArray([]);

    console.log(result);
    // false
```

#### incorrect value

```js
    import isPositiveArray from 'is-positive-array';

    const result = isPositiveArray(undefined);

    console.log(result);
    // false
```

## License

MIT © [Kas Elvirov](http://www.kas-elvirov.com/)

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