Nodes/comfy-ovum/_.sortedIndex
ComfyUI Node

_.sortedIndex

Uses a binary search to determine the smallest index at which the value should be inserted into the array in order to maintain the array's sorted order. If an iteratee function is provided, it will be used to compute the sort ranking of each value, including the value you pass. The iteratee may also be the string name of the property to sort by (eg. length). This function uses operator (note).

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.sortedIndex
  • py_list
  • value
  • iteratee
  • INT
iteratee_json
Categoryovum/underscore

Inputs (4)

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.
iterateeopt*iteratee: ANY input to override widget. Accepts function, key string, or object shorthand.
iteratee_jsonoptSTRINGiteratee_json: JSON or key selector. Used when 'iteratee' input is not connected.

Outputs (1)

NameTypeDescription
INTINT