ComfyUI Node

_.uniq

Produces a duplicate-free version of the array, using === to test object equality. In particular only the first occurrence of each value is kept. If you know in advance that the array is sorted, passing true for isSorted will run a much faster algorithm. If you want to compute unique items based on a transformation, pass an iteratee function.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.uniq
  • py_list
  • iteratee
  • LIST
isSortedfalse
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.
isSortedoptBOOLEANfalseisSorted (boolean)
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
LISTLIST