"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.chunk = void 0;
function chunk(array, size) {
    const chunks = [];
    const tmp = [...array];
    if (size <= 0) {
        return chunks;
    }
    while (tmp.length) {
        chunks.push(tmp.splice(0, size));
    }
    return chunks;
}
exports.chunk = chunk;
//# sourceMappingURL=array-utilities.js.map