Typescript Constructor Shorthand

Maksim Ivanov on February 22, 2019

Here is a thing, in Typescript there is a shorthand to create and assign class properties from constructor params. Imagine you have following co... [Read Full]
markdown guide
 

Daaaaang. You know, I generally tend to stay away from classes because I prefer to separate data from logic (you know, “functional programming” style), but sometimes it’s really convenient to use a class for encapsulating a set of shared functions (like a date class). So this is really helpful. Thank you! :)

 
code of conduct - report abuse