Nodes/comfy-ovum/_.contains
ComfyUI Node

_.contains

Returns true if the value is present in the list. Uses indexOf internally, if list is an Array. Use fromIndex to start your search at a given index.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.contains
  • list_or_dict
  • value
  • BOOLEAN
fromIndex0
Categoryovum/underscore

Inputs (3)

NameTypeDefaultDescription
list_or_dictopt*Primary input object (expected collection). You can still pass any JSON-serializable value. Also accepts _.CHAIN to continue chaining.
valueopt*value: JSON allowed for arrays/objects where applicable.
fromIndexoptINT0fromIndex (int)

Outputs (1)

NameTypeDescription
BOOLEANBOOLEAN