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.
_.lastIndexOf
- py_list
- value
- INT
◄fromIndex0►
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. | |
| valueopt | * | value: JSON allowed for arrays/objects where applicable. | |
| fromIndexopt | INT | 0 | fromIndex (int) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |