1.0.0 • Published 5 years ago

pieces-each v1.0.0

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

pieces-each

npm version Codacy Badge codebeat badge License: MIT

Intro

Recreate the array into n chunks.

Installation

npm install pieces-each

Usage

JavaScript

const PiecesEach = require('pieces-each').default

const array = PiecesEach([1, 2, 3, 4], 2)

TypeScript

import PiecesEach from 'pieces-each'

const array = PiecesEach([1, 2, 3, 4], 2)

Test

npm run test