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
- Host: GitHub
- URL: https://github.com/zhiyelee/array.chunk
- Owner: zhiyelee
- Created: 2016-01-06T04:29:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-11T05:22:16.000Z (over 4 years ago)
- Last Synced: 2025-10-25T04:09:38.937Z (6 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/array.chunk
- Size: 3.91 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micro-npm-packages - array.chunk - Split array/TypedArray to chunks of given size. (Modules / Array)
- fucking-awesome-micro-npm-packages - array.chunk - Split array/TypedArray to chunks of given size. (Modules / Array)
- awesome-micro-npm-packages-zh - array.chunk - 将 数组/类型数组分割成给定大小的块. (模块 / 数组)
- awesome-micro-npm-packages - array.chunk - Split array/TypedArray to chunks of given size. (Modules / Array)
README
# array.chunk
[](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