JavaScript
Removing Objects from …
Finding and remove duplicate information in an array is a very common task. In JavaScript this is pretty easy using the .reduce() method. Let’s say we have a simple array of objects like this: const myArray = [{ first_name: 'brian', last_name: 'wayne', age: 36 },{ first_name: …
Calculating NodeJS API …
It’s important to have as much information about the speed and health of our applications when they are running in the wild. In this blog post I’ll show you how to create a simple response time middleware that calculates the total time it takes for your application to process a request. …
Simple Polling Solution …
We often find a need to repeatedly perform an action while some condition is met. A common example is the need to poll or call a URL repeatedly at a fairly regular interval while some condition exists. This might mean making an AJAX request to a third party service every 5 seconds until it responds …