# @writetome51/array-remove-adjacent-at

> Removes adjacent items from an array, beginning at a chosen index

Latest version **2.0.0** (published 2020-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @writetome51/array-remove-adjacent-at
pnpm add @writetome51/array-remove-adjacent-at
yarn add @writetome51/array-remove-adjacent-at
bun add @writetome51/array-remove-adjacent-at
```

## 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.0 |
| Published | 2020-08-30 |
| First published | 2018-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | array, manipulation, remove, adjacent, items |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.0.0 (latest) — 2020-08-30
- 1.0.4 — 2019-02-28
- 1.0.3 — 2018-11-17
- 1.0.2 — 2018-11-08
- 1.0.1 — 2018-10-22
- 1.0.0 — 2018-10-09

## README

# removeAdjacentAt(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startingIndex,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;howMany,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array<br>): void

Beginning at `startingIndex`, it removes `howMany` adjacent items  from `array`.  
`startingIndex` can be negative or positive. 


## Examples
```
let arr = [10,20,30,40,50,60,70,80,90];  
removeAdjacentAt(-4, 2, arr);  
// arr is now  [10,20,30,40,50,80,90]

let arr = [10,20,30,40,50,60,70,80,90];  
removeAdjacentAt(2, 4, arr);  
// arr is now  [10,20,70,80,90]
```

## Installation
`npm i  @writetome51/array-remove-adjacent-at`

## Loading
```js
import {removeAdjacentAt} from '@writetome51/array-remove-adjacent-at';
```

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