groupby-esm
v0.0.1
Published
Utility to split array into groups.
Downloads
51
Readme
split-groups
Utility to split array into groups.
To install package:
npm install split-groups
Usage
import splitGroups from 'split-groups';
splitGroups(
[1, 2, 3, 4],
2,
)
Docs
arr
- list of items to splitcount
- count of items in group
Deploy
To install dependencies:
npm install
To build:
npm build
This project was created using bun init
in bun v1.1.0. Bun is a fast all-in-one JavaScript runtime.