# @writetome51/array-remove-head-tail

> Functions that remove items from the beginning of an array or the end

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

## Install

```sh
npm install @writetome51/array-remove-head-tail
pnpm add @writetome51/array-remove-head-tail
yarn add @writetome51/array-remove-head-tail
bun add @writetome51/array-remove-head-tail
```

## 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 | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | array, remove, head, tail, items, manipulation |

## Links

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

## Dependencies (1)

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

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

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

## README

# removeHead(numItems, array): void

Removes `numItems` from beginning of array.

# removeTail(numItems, array): void

Removes `numItems` from end of array.

## Examples
```
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
removeHead(3, arr);
// arr is now [4, 5, 6, 7, 8, 9]

removeTail(3, arr);
// arr is now [4, 5, 6]
```


## Installation
`npm i  @writetome51/array-remove-head-tail`

## Loading
```js
import {removeHead, removeTail} from '@writetome51/array-remove-head-tail';
```

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