most-chunksOf
Splits a list into length-n pieces akin to bufferWithCount
, batch
, splitEvery
Install
npm install most-chunksof
API
chunksOf
Split a list based on the supplied n
argument
const log = consolelogconst xs = /*[1,2,3][4,5,6][7]*/ // if you want to ignore uneven or tail chunksconst chunkEvery = const xs = /*[1,2,3][4,5,6]*/