Intercepting a Fetch Request
4 min read
A stumbled upon a nice script that helped a lot of people to book a train in Sweden, and got interested...
Iterate Over An Array With The Modulo Operator
2 min read
The modulo operator is often used to calculate if a value is odd or even, however, it comes to great...
Fetch Multiple Urls at The Same Time
2 min read
Fetch multiple URLs at the same time using Promises.all
Get The CSS Value Of A Property In Java Script
1 min read
Fetch your CSS values within your JavaScript code
Calculate How Many Days There Are Between Two Dates in JavaScript
1 min read
How to calculate the amount of days between two dates in JavaScript.
Check If Two Dates Are The Same Day In JavaScript
1 min read
A simple function to check if two date objects are referring to the same day.
Remove Duplicates in a JavaScript Array
1 min read
A simple and clean method to remove all duplicates in a given array.
Clear All Node Modules Folders Recursively
1 min read
Remove all node_modules folders within a directory with one simple command.
How To Rename Multiple Keys In A JavaScript Object
2 min read
Renaming the keys in a Javascript (or JSON) object can be quite tricky, this is a simple trick to rename...