array-chunk-equals

Chunk array to equals parts

Usage no npm install needed!

<script type="module">
  import arrayChunkEquals from 'https://cdn.skypack.dev/array-chunk-equals';
</script>

README

Array Chunk Equals

Usage

import chunkEquals from "array-chunk-equals";

const arr = [1, 2, 3, 4, 5, 6, 7];

console.log(chunkEquals(arr, 3));
// [[1, 2, 7], [3, 4], [5, 6]]

Install

with NPM

npm i array-chunk-equals

with Yarn

yarn add array-chunk-equals

LICENSE

Apache-2.0