VS Code has a nifty tool for doing search and replace using RegEx, which I prefer using whenever doing bulk…
I recently tried to use __dirname inside a ES module. It turns out, that I cannot. It throws an error. So let us…
The need to verify and notify the user if the Caps Lock key is on is fairly common. It is…
TypeScript is way more powerful than I give it credit for. I recently learned about creating new TypeScript types using…
As codebases grow larger and more complex in structure, imports can become unmanageable. As more directories are added, imports become…
I recently ran into the error "Cannot find module 'fs' or its corresponding type declarations.ts(2307)" while I was using VSCode…
When working with React, developers often come across the need to render lists of items efficiently. Every item in a…
After working on a project for a while, there will come a time when we will end up with a…
Jest has the ability to check for partial matches on arrays and objects. Let us see how to do partial…
SyntaxError: "[object Object]" is not valid JSON: usually happens when the value being passed to JSON.parse is not a string…