C# like object initialisation in TypeScript

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.

Continue reading “C# like object initialisation in TypeScript”

Advertisements

Easily compare complex expected output with actual output

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.

Continue reading “Easily compare complex expected output with actual output”