Dividir arreglo en bloques
array-chunkDivide un arreglo en bloques de tamaño fijo, p. ej. para enviar en lotes. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: ordenar un arreglo de valores u objetos por una o más claves (array-sort). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Splits an array into consecutive chunks of a given size (last chunk may be shorter), e.g. for batching API calls. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: sorting an array of values or objects by one or more keys (array-sort). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Chunk size (integer; required; min 1; max 100000). | |
| items | Yes | Array (array; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| chunks | No |