1.0.0 • Published 5 years ago
pieces-each v1.0.0
pieces-each
Intro
Recreate the array into n chunks.
Installation
npm install pieces-eachUsage
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 test1.0.0
5 years ago