# clean-array

> Safely remove empty values from an array.

Latest version **1.0.0** (published 2015-03-12) · MIT license · 0 weekly downloads

## Install

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

## 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-03-12 |
| First published | 2015-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ellen Gummesson |
| Maintainers | gummesson |
| Keywords | array, clean, omit, sanitize |

## Links

- npm: https://www.npmjs.com/package/clean-array
- Repository: https://github.com/gummesson/clean-array
- Issues: https://github.com/gummesson/clean-array/issues
- npm.io page: https://npm.io/package/clean-array

## Dependencies (2)

- [is-empty-array](https://npm.io/package/is-empty-array.md) ^1.0.0
- [is-empty-object](https://npm.io/package/is-empty-object.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2015-03-12

## README

# clean-array

[![NPM version][npm-img]][npm-url]
[![License][license-img]][license-url]
[![Build status][travis-img]][travis-url]

Safely remove empty values from an array.

## Installation

```
npm install clean-array
```

## Usage

``` javascript
var cleanArray = require('clean-array')

var arr = [null, undefined, [], {}, '', true, false, 1, 0, 'string']

cleanArray(arr)
// => [true, false, 1, 0, 'string']
```

[npm-img]: https://img.shields.io/npm/v/clean-array.svg?style=flat-square
[npm-url]: https://npmjs.org/package/clean-array
[license-img]: http://img.shields.io/npm/l/clean-array.svg?style=flat-square
[license-url]: LICENSE
[travis-img]: https://img.shields.io/travis/gummesson/clean-array.svg?style=flat-square
[travis-url]: https://travis-ci.org/gummesson/clean-array

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