Jan 11, 2021Pick one instance of a TypeScript array — destructuring [] to {}If you are in the rare pickle of having to destructure a TS-array to a single instance, here is what I think could help you. First, I’ll explain the problem. Imagine an interface called `Order`. It’s defined like this:Typescript3 min readTypescript3 min read
Jan 9, 2021Custom error messages with Jest for assertionsWhile writing an application in Node, I was trying to test whether an object had certain properties (by lack of TypeScript, because this was a a very simple application). The (now simplified) test looked like this.Jest3 min readJest3 min read