Completion requirements
Syntax
prop in object
Parameters
prop
A string or symbol representing a property name or array index (non-symbols will be coerced to strings).
object
Object to check if it (or its prototype chain) contains the property with specified name
(prop
).