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, ...]}`
_.fromPairs
- obj
- values
- manyValues
- *
Categoryovum/underscore
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| 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)
| Name | Type | Description |
|---|---|---|
| * | * | — |