Tag: JavaScript
Laurie Barth
Laurie Barth
06 Aug, 2019

How to Turn an Existing Gatsby Site Into a Theme

Jason Lengstorf and I had a really great time on Learn With Jason porting a portion of my site into a theme! I wanted to write up that process so that others can do it too.
Laurie Barth
Laurie Barth
30 Jul, 2019

Splice! Slice! Shoot, I meant Shift!

Figuring out what array manipulation function to use in JavaScript is such a common joke at this point. There are a lot of them, and most of them seem to start with an 's'! Let's dive into a handful of these functions.
Laurie Barth
Laurie Barth
24 Jul, 2019

Deep vs Shallow Copy – with Examples

The spread operator is a great piece of syntax, but it produces shallow copies. What exactly does that mean? And when does it matter?
Laurie Barth
Laurie Barth
16 Jul, 2019

Let’s loop – for…in vs for…of

These two alternatives to for loops are wonderful, but they do different things. Let's understand them better!
Laurie Barth
Laurie Barth
10 Jul, 2019

5 Uses for the Spread Operator

JavaScript has a bunch of syntax that aims to make your life easier as a developer. The spread operator is a particularly popular option, so let's see what you can do with it!
Laurie Barth
Laurie Barth
02 Jul, 2019

Introducing Object.fromEntries

We're learning about ES2019 and this entry is all about understanding the Object.fromEntries function.
Laurie Barth
Laurie Barth
25 Jun, 2019

Understanding Array.prototype.flatMap

ES2019 added a new function called flatMap for manipulating arrays. In this post we're going to learn all about it.
Laurie Barth
Laurie Barth
18 Jun, 2019

Demystifying Array.prototype.flat

I'm an ECMAScript junky and I wanted to dive into the latest features! In this post we'll look at Array.prototype.flat.
Laurie Barth
Laurie Barth
11 Jun, 2019

3 Powerful Examples of Destructuring Assignment

ES2015+ introduced so many wonderful features, but destructuring assignment may be one of the most powerful and versatile of them all.
Laurie Barth
Laurie Barth
14 May, 2019

Honey, I Type Checked the Children

The cli added this line of code, it says something about isRequired. So I guess I'll just leave it there?