In TypeScript, I’ve missed the ease of initialising objects as I have in dotnet with object initalisation. While researching an issue, I stumbled upon a little trick that makes initialising an object a breeze in TypeScript.
A coworker showed me this “little trick which will make your code a lot easier”. Ok, I promise I won’t use click-bait anymore. The library he showed me, did make testing differences in output a lot cleaner though.