JavaScript Destructuring

Destructuring allows you to take an object or array, and pull pieces of it out into local variables. This can be useful to keep code more readable and avoid holding a reference to an object when you don’t need it any longer. You can use this in both JavaScript and TypeScript. View code on GitHub

TypeScript in NodeJS

It doesn’t take much to set up TypeScript in NodeJS. TypeScript’s type safety makes it much more enjoyable to write than plain JavaScript. If you’re new to TypeScript, check out the playground where you can see a bunch of examples of what TypeScript looks like compared to JavaScript. When importing NPM packages, you can almost […]