ComfyUI Node
_.head
Get the first element of an array. Passing **n** will return the first N values in the array. Aliased as `head` and `take`. The **guard** check allows it to work with `_.map`. Note: not passing `n` will return the first item, passing `n=1` will return a list containing only the first item. (as per underscore.js)
_.head
- obj
- default
- *
◄n1►
Categoryovum/underscore
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| objopt | * | Primary input object. Also accepts _.CHAIN to continue chaining. | |
| nopt | INT | 1 | n (int) |
| defaultopt | * | default: JSON allowed for arrays/objects where applicable. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |