Determine whether the source object has a property with the specified key.
name | type | description |
---|---|---|
source | object |
The source object to be checked. |
key | string |
The property to check for within the object |
true
if the provided key
exists on the source
object, otherwise false
.