If you are writing tests using Jest and you use TypeScript, there is a good chance you have encountered an error along the lines of …
Javascript
When To Use State Management In Front-end Applications?
As ubiquitous as state management has become in front-end development, it is still a confusing magical black box to most developers. Data …
Default Exports = Bad
Hello humans. In JavaScript, the worlds most loved and internets favourite client-side language, thanks to modern ECMAScript standards, we …
The State of JS Survey Is A Farce: Part Two
Recently, I published a blog title which I titled, The State of JS Survey Is A Farce in which I expressed criticism that the State of JS …
The State of JS Survey Is A Farce
The State of JS is a survey that has been running for a few years now, which surveys front-end developers and aims to find out what they're …
Computed Object Keys and Function Names In Javascript
For years, I wanted the ability to use variables as object keys in Javascript. Thanks to ES2015, we got the ability to have computed object …
How To Convert FormData To JSON Object
Recently, whilst working on a project I needed to take HTML FormData and then convert it to JSON to be sent off to an API. By default the …
Module ES2015 and TypeScript 2.4 Dynamic Imports
Introduced in TypeScript 2.4 is support for the ECMAScript dynamic imports feature. If you didn't see the announcement or read it properly, …
Efficiently Looping A Javascript Array Backwards
Most of the time when you're looping over an array of elements, you'll do it sequentially. However, I recently needed to iterate through an …