Nodes/comfy-ovum/_.fromPairs
ComfyUI Node

_.fromPairs

Zip together two arrays -- an array of keys and an array of values -- into a single object. Or pass a single array of `[key, value]` (the reverse of `_.pairs`) Aliased as `fromPairs` (lodash) and `zipObject` @param manyValues bool: if True, input is `[key, value1, value2, ...]` and output will be `{key: [value1, value2, ...]}`

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.fromPairs
  • obj
  • values
  • manyValues
  • *
Categoryovum/underscore

Inputs (3)

NameTypeDefaultDescription
objopt*Primary input object. Also accepts _.CHAIN to continue chaining.
valuesopt*values: JSON allowed for arrays/objects where applicable.
manyValuesopt*manyValues: JSON allowed for arrays/objects where applicable.

Outputs (1)

NameTypeDescription
**