ComfyUI Node

_.has

Does the object contain the given key? Identical to object.hasOwnProperty(key), but uses a safe reference to the hasOwnProperty function, in case it's been overridden accidentally.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.has
  • py_dict
  • BOOLEAN
key
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.
keyoptSTRINGkey (string)

Outputs (1)

NameTypeDescription
BOOLEANBOOLEAN