Nodes/comfy-ovum/_.lastIndexOf
ComfyUI Node

_.lastIndexOf

Returns the index of the last occurrence of value in the array, or -1 if value is not present. Pass fromIndex to start your search at a given index.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.lastIndexOf
  • py_list
  • value
  • INT
fromIndex0
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.
valueopt*value: JSON allowed for arrays/objects where applicable.
fromIndexoptINT0fromIndex (int)

Outputs (1)

NameTypeDescription
INTINT