TypeScript hasOwnProperty equivalent
If obj is a TypeScript object (instance of a class), is there a way to perform the same operation? Your JavaScript is valid TypeScript (more). So you can use the same code as it is. Here is an example: class Foo{ foo = 123 } const dict = new Foo(); const obj = {} as … Read more