# @writetome51/array-append-prepend

> Functions append() and prepend(), which are alternatives to Array.push() and Array.unshift()

Latest version **4.0.0** (published 2021-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @writetome51/array-append-prepend
pnpm add @writetome51/array-append-prepend
yarn add @writetome51/array-append-prepend
bun add @writetome51/array-append-prepend
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2021-05-01 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Thompson |
| Maintainers | writetome51 |
| Keywords | array, modify, manipulation, append, appending, prepend, prepending, push, unshift, items |

## Links

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

## Recent versions

- 4.0.0 (latest) — 2021-05-01
- 3.0.0 — 2020-08-24
- 2.0.0 — 2020-08-06
- 1.0.5 — 2019-02-27
- 1.0.4 — 2018-12-06
- 1.0.3 — 2018-11-05
- 1.0.2 — 2018-10-07
- 1.0.1 — 2018-09-29
- 1.0.0 — 2018-09-27

## README

# prepend(value, array): void

Adds `value` to beginning of `array`.  Alternative to `array.unshift(value)`

# append(value, array): void

Adds `value` to end of `array`.  Alternative to `array.push(value)`

 
## Examples
```js
let arr = [1, 2, 3];  
prepend(10, arr); 
// arr === [10, 1, 2, 3] 

arr = [1, 2, 3];
append(30, arr); 
// arr === [1, 2, 3, 30]
```

## Installation
`npm i  @writetome51/array-append-prepend`

## Loading
```js
import {prepend, append} from '@writetome51/array-append-prepend';
```

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