# partition-all

> Returns a sequence of lists like partition, but may include partitions with fewer than n items at the end.

Latest version **1.0.1** (published 2015-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install partition-all
pnpm add partition-all
yarn add partition-all
bun add partition-all
```

## 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.1 |
| Published | 2015-02-11 |
| First published | 2015-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | stoeffel |
| Maintainers | schtoeffel |
| Keywords | partition-all, array |

## Links

- npm: https://www.npmjs.com/package/partition-all
- Repository: http://github.com/stoeffel/partition-all
- Issues: http://github.com/stoeffel/partition-all/issues
- npm.io page: https://npm.io/package/partition-all

## Dependencies (1)

- [chickencurry](https://npm.io/package/chickencurry.md) ^1.2.1

## Recent versions

- 1.0.1 (latest) — 2015-02-11
- 1.0.0 — 2015-02-11

## README

partition-all
================

[![Build Status](https://travis-ci.org/stoeffel/partition-all.svg)](https://travis-ci.org/stoeffel/partition-all) [![npm version](https://badge.fury.io/js/partition-all.svg)](http://badge.fury.io/js/partition-all)
> Returns a sequence of arrays, but may include partitions with fewer than n items at the end.

Installation
------------

`npm install partition-all --save`

Usage
-----

```js
var partitionAll = require('partition-all');

partitionAll(2, [1, 2, 3, 4, 5, 6]); // => [[1, 2], [3, 4], [5, 6]]
partitionAll(2, [1, 2, 3, 4, 5]); // => [[1, 2], [3, 4], [5]]
partitionAll(3, [1, 2, 3, 4, 5]); // => [[1, 2, 3], [4, 5]]

var partition2 = partitionAll(2);

partition2([1, 2, 3, 4, 5, 6]); // => [[1, 2], [3, 4], [5, 6]]
```

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