Nodes/comfy-ovum/_.firstOr
ComfyUI Node

_.firstOr

Get the first element of an array, or `default` if empty.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.firstOr
  • obj
  • default
  • *
Categoryovum/underscore

Inputs (2)

NameTypeDefaultDescription
objopt*Primary input object. Also accepts _.CHAIN to continue chaining.
defaultopt*default: JSON allowed for arrays/objects where applicable.

Outputs (1)

NameTypeDescription
**