Extraer una clave de cada objeto
array-pluckExtrae el valor de una clave de cada objeto de un arreglo. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: agrupar objetos por el valor de una clave y devolver grupos y conteos (array-group-by). 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: Extracts the value at a key (dotted path) from every object in an array; missing values become null or are dropped. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: grouping objects by the value of a key (array-group-by). 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 |
|---|---|---|---|
| key | Yes | Object key (dotted path allowed) to compare by (string; required; up to 500 chars). | |
| items | Yes | Array (array; required). | |
| drop_missing | No | Drop items without the key (boolean; optional; default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | any JSON value |