Nodes/comfy-ovum/_.invert
ComfyUI Node

_.invert

Returns a copy of the object where the keys have become the values and the values the keys. For this to work, all of your object's values should be unique and string serializable.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.invert
  • py_dict
  • DICT
Categoryovum/underscore

Inputs (1)

NameTypeDefaultDescription
py_dictopt*Primary input object (expected object). You can still pass any JSON-serializable value. Also accepts _.CHAIN to continue chaining.

Outputs (1)

NameTypeDescription
DICTDICT