Check whether an object has both of the given properties.
name | type | description |
---|---|---|
object | object |
The object to check. |
key1 | string |
The key of the first property to check the object for. |
key2 | string |
The key of the second property to check the object for. |
true
if both properties exist in the object, false
otherwise.