An open API service indexing awesome lists of open source software.

https://github.com/zhiyelee/array.chunk

Split array/TypedArray to chunks of given size
https://github.com/zhiyelee/array.chunk

Last synced: about 2 months ago
JSON representation

Split array/TypedArray to chunks of given size

Awesome Lists containing this project

README

          

# array.chunk
[![Build Status](https://travis-ci.org/zhiyelee/array.chunk.svg)](https://travis-ci.org/zhiyelee/array.chunk)

Split array/TypedArray to chunks of given size.

## Usage

```js
const chunks = require('array.chunk');

// [[1, 2], [3, 4], [5]]
console.log(chunks([1, 2, 3, 4, 5], 2));
```

## LICENSE
ISC