Check whether an object has the given property.
name | type | description |
---|---|---|
object | object |
The object to check. |
key | string |
The key of the property to look for in the object. |
true
if the property exists in the object, false
otherwise.