# unordered-array-remove

> Efficiently remove an element from an unordered array without doing a splice

Latest version **1.0.2** (published 2016-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install unordered-array-remove
pnpm add unordered-array-remove
yarn add unordered-array-remove
bun add unordered-array-remove
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-03-30 |
| First published | 2015-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/unordered-array-remove) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/unordered-array-remove
- Repository: https://github.com/mafintosh/unordered-array-remove
- Issues: https://github.com/mafintosh/unordered-array-remove/issues
- npm.io page: https://npm.io/package/unordered-array-remove

## Recent versions

- 1.0.2 (latest) — 2016-03-30
- 1.0.1 — 2015-12-30
- 1.0.0 — 2015-12-30

## README

# unordered-array-remove

Efficiently remove an element from an unordered array without doing a splice

```
npm install unordered-array-remove
```

[![build status](http://img.shields.io/travis/mafintosh/unordered-array-remove.svg?style=flat)](http://travis-ci.org/mafintosh/unordered-array-remove)

## Usage

``` js
var remove = require('unordered-array-remove')

var list = ['a', 'b', 'c', 'd', 'e']
remove(list, 2) // remove 'c'
console.log(list) // returns ['a', 'b', 'e', 'd'] (no 'c')
```

This works by popping the last element (which is fast because it doesn't need shift all array elements)
and overwriting the removed index with this element.

## License

MIT

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