# betterarrays

> *Make your arrays better.*

Latest version **1.1.0** (published 2019-01-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install betterarrays
pnpm add betterarrays
yarn add betterarrays
bun add betterarrays
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-01-03 |
| First published | 2019-01-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tony Boyles |
| Maintainers | aaboyles |

## Links

- npm: https://www.npmjs.com/package/betterarrays
- npm.io page: https://npm.io/package/betterarrays

## Recent versions

- 1.1.0 (latest) — 2019-01-03
- 1.0.0 — 2019-01-02

## README

# betterarrays

*Make your arrays better.*

## How?

In Node:

```javascript
require('betterarrays');
```

In Browser:

```javascript
<script src="betterarrays.js"></script>
```

## What?

```javascript
const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
const vowels = 'aeiou'.split('');

alphabet.without(vowels);
//> ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"]
```

## Why?

Chaining!

```javascript
const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
const vowels = 'aeiou'.split('');

alphabet
  .without(vowels)
  .first();

//> "b"
```

## Why not?

Enumerable Properties!

```javascript
for(a in ['a']){
  console.log(a);
}

// What we should expect:
//> 'a'

// What we get:
//> 'a'
//> <a bunch of functions>
```

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