# array-spread

> Concat a matrix array into one flattened array.

Latest version **1.0.2** (published 2015-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-spread
pnpm add array-spread
yarn add array-spread
bun add array-spread
```

## 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.0.2 |
| Published | 2015-12-15 |
| First published | 2015-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Bjarne Oeverli |
| Maintainers | bjarneo |
| Keywords | spread, splat, array, concat, matrix, arrays, apply |

## Links

- npm: https://www.npmjs.com/package/array-spread
- Repository: https://github.com/bjarneo/array-spread
- Issues: https://github.com/bjarneo/spread-array/issues
- npm.io page: https://npm.io/package/array-spread

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-12-15
- 1.0.1 — 2015-12-14
- 1.0.0 — 2015-12-14

## README

array-spread
======

Why
------
Concat a matrix array into one flattened array.

Installation
------
```
$ npm install --save array-spread
```

Usage
------
```javascript
var arraySpread = require('array-spread');

var matrix = [
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
];

console.log(arraySpread(matrix));

// Output:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
```

Test
------
```
npm test
```

How does it work?
------
```javascript
var matrix = [
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
];

console.log([].concat.apply([], matrix));

// Output:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
```

ES6
```javascript
let matrix = [
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
];

console.log([...matrix]);
// Output:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
```

Contribution
------
Contributions are appreciated.

License
------
MIT-licensed. See LICENSE.

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