Search
The function doesPropertyExist should check whether a given property is present in the object or not.
doesPropertyExist
If the property is present, return true. Otherwise, return false.
true
false
For example: