Determines whether an object has a property with the specified name.
hasOwnProperty(name): boolean;
name
A property name.
true if the object has a property with the specified name; otherwise, false.
let obj = { temperature: 37 }
obj.hasOwnProperty("temperature")
true