Forbidden Typescript: Using Object.create to clone
In âJavascript: The Definitive Guideâ there is an example that uses Object.inherit to inherit the prototype change. JavaScript defines a method Object.create that creates a new object using the given argument as the prototype of that object. Translating the examples from The Definitive Guide to Typescript, it looks like: