Nodes/comfy-ovum/_.flatten
ComfyUI Node

_.flatten

Flattens a nested array. If you pass true or 1 as the depth, the array will only be flattened a single level. Passing a greater number will cause the flattening to descend deeper into the nesting hierarchy. Omitting the depth argument, or passing false or Infinity, flattens the array all the way to the deepest nesting level.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.flatten
  • py_list
  • depth
  • LIST
Categoryovum/underscore

Inputs (2)

NameTypeDefaultDescription
py_listopt*Primary input object (expected array). You can still pass any JSON-serializable value. Also accepts _.CHAIN to continue chaining.
depthopt*depth: JSON allowed for arrays/objects where applicable.

Outputs (1)

NameTypeDescription
LISTLIST