# @pirxpilot/in-groups-of

> Return an array of arrays in groups of N

Latest version **1.1.3** (published 2025-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pirxpilot/in-groups-of
pnpm add @pirxpilot/in-groups-of
yarn add @pirxpilot/in-groups-of
bun add @pirxpilot/in-groups-of
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2025-04-06 |
| First published | 2017-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 870 B |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pirxpilot |

## Links

- npm: https://www.npmjs.com/package/@pirxpilot/in-groups-of
- Repository: https://github.com/pirxpilot/in-groups-of
- Homepage: https://github.com/pirxpilot/in-groups-of#readme
- Issues: https://github.com/pirxpilot/in-groups-of/issues
- npm.io page: https://npm.io/package/@pirxpilot/in-groups-of

## Recent versions

- 1.1.3 (latest) — 2025-04-06
- 1.1.2 — 2018-02-07
- 1.1.1 — 2017-02-17

## README

# in-groups-of

  Return an array of arrays in groups of N

## Installation

```
$ npm install @pirxpilot/in-groups-of
```

## Example

```js
var nums = [1,2,3,4,5,6,7,8,9,10];

inGroupsOf(nums, 5)
// => [[1,2,3,4,5], [6,7,8,9,10]]

inGroupsOf(nums, 4)
// => [[1,2,3,4], [5,6,7,8], [9,10]]

inGroupsOf(nums, 2)
//=> [[1,2], [3,4], [5,6], [7,8], [9,10]]
```

# License

  MIT

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