Check whether a certain method or property (typically an entry point into using the API or other feature you are detecting for) exists in its parent Object
Check if a certain property exists on a global object (such as window or navigator)
if("geolocation" in navigator) { ... }