# map-of-arrays

> Make a Map of Arrays

Latest version **1.0.0** (published 2018-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install map-of-arrays
pnpm add map-of-arrays
yarn add map-of-arrays
bun add map-of-arrays
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-05-27 |
| First published | 2018-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 12.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Fernando Garcia |
| Maintainers | wtg |

## Links

- npm: https://www.npmjs.com/package/map-of-arrays
- Repository: https://github.com/wtgtybhertgeghgtwtg/map-of-arrays
- Homepage: https://github.com/wtgtybhertgeghgtwtg/map-of-arrays#readme
- Issues: https://github.com/wtgtybhertgeghgtwtg/map-of-arrays/issues
- npm.io page: https://npm.io/package/map-of-arrays

## Recent versions

- 1.0.0 (latest) — 2018-05-27

## README

# map-of-arrays

> Make a Map of Arrays.

A `Map` for handling Arrays. Every other package name containing "map" and "array" was taken.

## Install

```
$ yarn add map-of-arrays
```

## Usage

```js
const ArrayMap = require('map-of-arrays');

const arrayMap = new ArrayMap();

arrayMap.push('someKey', 1, 2);

arrayMap.push('someKey', 3, 4);

// Returns [1, 2, 3, 4];
arrayMap.get('someKey');
```

## API

### ArrayMap([iterable])

Returns a new `ArrayMap` instance. Identical to a regular `Map`, with two exceptions: it will throw if given non-Array values, and the existence of `push`.

### .push(key, ...values)

Pushes `values` to the Array under `key`.

#### key

Type: `any`

#### values

Type: `Array`

## License

MIT © Matthew Fernando Garcia

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