Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

226 B
Raw Blame
export const splitToNChunks = <T>(array: T[], chunks: number): T[][] => {
  const result: T[][] = [];
  for (let i = chunks; i > 0; i--) {
    result.push(array.splice(0, Math.ceil(array.length / i)));
  }
  return result;
};