Chaining Array Methods
Link to code snippet: GitHub One of the greatest things about JavaScript is how easy it is to work with arrays. The various array methods (map, filter, reduce, etc.…
I'm a detail-oriented individual who thrives in fast-paced team environments. I have experience across different industries, working with both front end and back end technologies.
es6
Link to code snippet: GitHub One of the greatest things about JavaScript is how easy it is to work with arrays. The various array methods (map, filter, reduce, etc.…
Link to code snippet: GitHub Let's begin with an array of colors: We can add the color yellow to the end of our array: Now, our array contains four different colors…
Link to code snippet: GitHub One of the great features of ES6 is computed property names. Let's say we have the following properties: And a person object: As long a…
Link to code snippet: GitHub Let's go over a few different methods of adding key/value pairs to an object! Let's begin with an object named orange and give it two p…
Using the push() method, we can add elements to the end of an array. But what if our goal is to add elements to the beginning of an array? JavaScript has another me…
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…
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(…
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…
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…