UNPKG

webforai

Version:

A library that provides a web interface for AI

14 lines (13 loc) 250 B
// src/utils/common.ts var chunk = (array, size) => { return array.reduce((acc, _, index) => { if (index % size === 0) { acc.push(array.slice(index, index + size)); return acc; } return acc; }, []); }; export { chunk };