Skip to content

containsKey

containsKey(object, key) → boolean · Object

Alias for hasKey(). Check if an object has a property with the given key name.

  • object (required): the object to check

  • key (required): property name as string

utlx
containsKey($input, "email")             // true
containsKey($input, "phone")             // false
{
  hasEmail: containsKey($input, "email")
}

Released under AGPL-3.0.