1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

feat(monorepo): migrate vue packages and apply oxlint refactors

This commit is contained in:
2026-03-07 18:07:22 +07:00
parent abd6605db3
commit 41d5e18f6b
286 changed files with 10295 additions and 5028 deletions

View File

@@ -2,17 +2,17 @@
* @name cluster
* @category Arrays
* @description Cluster an array into subarrays of a specific size
*
*
* @param {Value[]} arr The array to cluster
* @param {number} size The size of each cluster
* @returns {Value[][]} The clustered array
*
*
* @example
* cluster([1, 2, 3, 4, 5, 6, 7, 8], 3) // => [[1, 2, 3], [4, 5, 6], [7, 8]]
*
*
* @example
* cluster([1, 2, 3, 4], -1) // => []
*
*
* @since 0.0.3
*/
export function cluster<Value>(arr: Value[], size: number): Value[][] {