# @writetome51/array-remove-by-index

> Removes single item from array, identified by a passed index

Latest version **2.0.1** (published 2021-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @writetome51/array-remove-by-index
pnpm add @writetome51/array-remove-by-index
yarn add @writetome51/array-remove-by-index
bun add @writetome51/array-remove-by-index
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-11-15 |
| First published | 2018-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | array, splice, remove, item, manipulation |

## Links

- npm: https://www.npmjs.com/package/@writetome51/array-remove-by-index
- Repository: https://github.com/writetome51/array-remove-by-index
- Homepage: https://github.com/writetome51/array-remove-by-index#readme
- Issues: https://github.com/writetome51/array-remove-by-index/issues
- npm.io page: https://npm.io/package/@writetome51/array-remove-by-index

## Dependencies (1)

- [@writetome51/array-get-and-remove-by-index](https://npm.io/package/@writetome51/array-get-and-remove-by-index.md) >=2.0.0

## Recent versions

- 2.0.1 (latest) — 2021-11-15
- 2.0.0 — 2020-08-05
- 1.0.2 — 2019-02-26
- 1.0.1 — 2018-12-07
- 1.0.0 — 2018-11-01

## README

# removeByIndex(index, array): void

Removes item, identified by `index`, from `array`.  
`index` can be negative or positive.


Examples:
```js
let arr = [1,2,3,4,5,6];
removeByIndex(2, arr); // arr is now [1,2,4,5,6]

arr = [1,2,3,4,5,6];
removeByIndex(-2, arr); // arr is now [1,2,3,4,6]
```

## Installation
`npm i  @writetome51/array-remove-by-index`

## Loading
```js
import {removeByIndex} from '@writetome51/array-remove-by-index';
```

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