ComfyUI Node
_.findIndex
Similar to _.indexOf, returns the first index where the predicate truth test passes; otherwise returns -1.
_.findIndex
- py_list
- predicate
- INT
◄predicate_json►
Categoryovum/underscore
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| 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_jsonopt | STRING | predicate_json: JSON or key selector. Used when 'predicate' input is not connected. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |