ComfyUI Node
_.firstOr
Get the first element of an array, or `default` if empty.
_.firstOr
- obj
- default
- *
Categoryovum/underscore
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| objopt | * | Primary input object. Also accepts _.CHAIN to continue chaining. | |
| defaultopt | * | default: JSON allowed for arrays/objects where applicable. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |