Copying Classes in TypeScript

added by DotNetKicks
3/6/2018 3:40:23 PM

2 Kicks, 266 Views

Practical TypeScript If you need to create a version of a class from several sources or just want to merge default values with a user's input, object spreading solves your problem. JavaScript won't let you do this (yet) but TypeScript will. One of the attractive features of TypeScript is how it incorporates features that aren't (yet) available in JavaScript.