Nodes/comfy-ovum/_.findLastIndex
ComfyUI Node

_.findLastIndex

Like _.findIndex but iterates the array in reverse, returning the index closest to the end where the predicate truth test passes.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.findLastIndex
  • 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