# array-compact

> Return an array copy without falsy values

Latest version **1.0.0** (published 2015-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-compact
pnpm add array-compact
yarn add array-compact
bun add array-compact
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-07-22 |
| First published | 2015-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vadim Demedes |
| Maintainers | vdemedes |
| Keywords | compact, arr-compact |

## Links

- npm: https://www.npmjs.com/package/array-compact
- Repository: https://github.com/vdemedes/array-compact
- Homepage: https://github.com/vdemedes/array-compact#readme
- Issues: https://github.com/vdemedes/array-compact/issues
- npm.io page: https://npm.io/package/array-compact

## Recent versions

- 1.0.0 (latest) — 2015-07-22

## README

# array-compact [![Circle CI](https://circleci.com/gh/vdemedes/array-compact.svg?style=svg)](https://circleci.com/gh/vdemedes/array-compact)

Return an array copy without falsy values.


### Installation

```
$ npm install array-compact --save
```


### Usage

```javascript
const compact = require('array-compact');

let arr = ['', 0, 1, 'abc', false, true];

compact(arr); // => [1, 'abc', true]
```


### Tests

[![Circle CI](https://circleci.com/gh/vdemedes/array-compact.svg?style=svg)](https://circleci.com/gh/vdemedes/array-compact)

```
$ make test
```


### License

array-compact is released under the MIT license.

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