# code42day-in-groups-of

> Return an array of arrays in groups of N

Latest version **1.1.0** (published 2015-09-21) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install code42day-in-groups-of
pnpm add code42day-in-groups-of
yarn add code42day-in-groups-of
bun add code42day-in-groups-of
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-09-21 |
| First published | 2015-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pirxpilot |

## Links

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

## Recent versions

- 1.1.0 (latest) — 2015-09-21
- 1.0.1 — 2015-09-18

## 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/code42day-in-groups-of · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
