Most Recent Post
How to check if a key exists in a JavaScript object
When working with objects, we may need to check if a certain key exists or has a certain value. Let’s say we have a dog object: And we want to validate whether or n…
How to check if array contains duplicate values
Knowing how to check for duplicates in an array can be useful in many different situations. Here are two ways to accomplish this: Combination of some() and indexOf(…
How to combine arrays in JavaScript
Let's go over a few ways to combine arrays in Javascript! Concatenate We have two arrays, an array of numbers and an array of colors. We can use [].concat syntax to…
How to use async await in loops
As developers, we frequently find ourselves needing to perform certain asynchronous tasks. What if we want to do this in a loop? Let's dive into a few examples of c…