# a-split

> Split an array into arrays of a specific length

Latest version **1.0.0** (published 2016-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install a-split
pnpm add a-split
yarn add a-split
bun add a-split
```

## 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.0 |
| Published | 2016-04-14 |
| First published | 2016-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vikram Jadhav |
| Maintainers | vikramcse |
| Keywords | split, array, groups, partition |

## Links

- npm: https://www.npmjs.com/package/a-split
- Repository: https://github.com/vikramcse/a-split
- Homepage: https://github.com/vikramcse/a-split#readme
- Issues: https://github.com/vikramcse/a-split/issues
- npm.io page: https://npm.io/package/a-split

## Recent versions

- 1.0.0 (latest) — 2016-04-14

## README

# a-split
Split an array into arrays of a specific length

## Install

```sh
$ npm install --save a-split
```

## Example

```js
var split = require('a-split');

console.log(split([1, 2, 3, 4, 5, 6], 2));

// -> [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ]

console.log(split([1, 2, 3, 4, 5, 6, 7], 2));

// -> [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ], [ 7 ] ]
```

### `require('a-split')(list, length)`

**Arguments**:

- `list`: The array to split up
- `length`: The maximum amount of items a partial can have

**Returns**: Returns an array into arrays of a specific length

## License

&copy; 2016 Vikram Jadhav. MIT License

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