The in operator in TypeScript
The in-operator is used to check whether a property within an object with a particular interface type exists or not. As you can see the “brand” property does exist within the above object with the type ILaptop and thus the brand of that object will be printed on the terminal screen!