tahamajs's picture
download
raw
387 Bytes
var _setup = require('./_setup.js');
// Chunk a single array into multiple arrays, each containing `count` or fewer
// items.
function chunk(array, count) {
if (count == null || count < 1) return [];
var result = [];
var i = 0, length = array.length;
while (i < length) {
result.push(_setup.slice.call(array, i, i += count));
}
return result;
}
module.exports = chunk;

Xet Storage Details

Size:
387 Bytes
·
Xet hash:
c76c3958eb70441acf1993cd3eeb7a71c74a2e0a703b5ae887474003c3f64a73

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.