0.1.3 • Published 5 years ago

split-into-batches v0.1.3

Weekly downloads
8
License
MIT
Repository
-
Last release
5 years ago

Split Into Batches

Splits long arrays into batches of a specified size.

Example

import splitIntoBatches from "split-into-batches";

const longArray = ["a", "b", "c", "d", "e"];
const batches = splitIntoBatches(longArray, 2);

console.log(batches);

// [ [ 'a', 'b' ], [ 'c', 'd' ], [ 'e' ] ]
0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago