# group-array-elements

> groups array elements

Latest version **1.0.4** (published 2021-01-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install group-array-elements
pnpm add group-array-elements
yarn add group-array-elements
bun add group-array-elements
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-01-22 |
| First published | 2021-01-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | thebigbignooby |

## Links

- npm: https://www.npmjs.com/package/group-array-elements
- npm.io page: https://npm.io/package/group-array-elements

## Recent versions

- 1.0.4 (latest) — 2021-01-22
- 1.0.3 — 2021-01-21
- 1.0.2 — 2021-01-21
- 1.0.1 — 2021-01-21
- 1.0.0 — 2021-01-21

## README

# Group Array Elements

## What

A function which splits an array into N equally sized arrays.

Where the size of the original array cannot be divided equally by N, the final part should have a length equal
to the remainder.

## Why

This is for a technical test. Pushing it to Github and NPM was not a requirement.

## Getting started

```sh
npm i group-array-elements
```

## How to use

```js
import { groupArrayElements } from 'group-array-elements'

groupArrayElements([1,2,3,4,5], 3)
// returns [[1,2], [3,4], [5]]
```

## Contributing

```sh
git clone git@github.com:Thebigbignooby/group-array-elements.git
```

CD into the project.

```sh
npm i
```

and you're ready to go, try running some tests with:

```sh
npm run test
```

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