ComfyUI Node

_.pick

Return a copy of the object, filtered to only have values for the allowed keys (or array of valid keys). Alternatively accepts a predicate indicating which keys to pick.

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

Inputs (2)

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

Outputs (1)

NameTypeDescription
DICTDICT