Nodes/comfy-ovum/_.findIndex
ComfyUI Node

_.findIndex

Similar to _.indexOf, returns the first index where the predicate truth test passes; otherwise returns -1.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.findIndex
  • py_list
  • predicate
  • INT
predicate_json
Categoryovum/underscore

Inputs (3)

NameTypeDefaultDescription
py_listopt*Primary input object (expected array). You can still pass any JSON-serializable value. Also accepts _.CHAIN to continue chaining.
predicateopt*predicate: ANY input to override widget. Accepts function, key string, or object shorthand.
predicate_jsonoptSTRINGpredicate_json: JSON or key selector. Used when 'predicate' input is not connected.

Outputs (1)

NameTypeDescription
INTINT