Category JavaScript

All Categories

Immutable operations on arrays

September 17, 20225 min readJavaScript

Learn how to sort, add, update, and remove from an array in an immutable way in JavaScript.

Destructuring undefined objects

September 09, 20223 min readJavaScript

How to safely destructure an object in JavaScript or TypeScript, even in cases where it may be undefined.

How to use the JavaScript reduce method

November 13, 20217 min readJavaScript

Learn about the JavaScript reduce method and make it easier to remember and use.

Removing duplicates from arrays and arrays of objects

June 22, 20214 min readJavaScript

Learn how to remove duplicates from arrays and arrays of objects in JavaScript.

Removing a property from a JavaScript object

April 25, 20212 min readJavaScript

Learn about how to remove an object property from a JavaScript object and how it can also be done in an immutable way.

The nullish coalescing operator

March 24, 20211 min readJavaScript

Learn about how to use the nullish coalescing operator in JavaScript to fall back to a default value when dealing with null or undefined.

Optional chaining in JavaScript

March 23, 20213 min readJavaScript

Learn about how to use optional chaining in JavaScript to prevent cannot read property of undefined errors.

Using a dictionary data structure in JavaScript

February 20, 20214 min readJavaScript

Learn about how to use a dictionary data structure in JavaScript using the Map object.

Functional Programming in JavaScript

February 15, 20214 min readJavaScript

Learn about functional programming and how to start using pure function in your JavaScript projects.

JavaScript array and object destructuring

December 30, 20205 min readJavaScript

Discover how to use destructuring assignment syntax to destructure arrays and objects in JavaScript.

JavaScript variable declaration with var, let, and const

December 28, 20206 min readJavaScript

Learn the differences between var, let, and const for variable declaration in JavaScript.

Conditionally add keys to JavaScript objects with the spread operator

December 26, 20202 min readJavaScript

Discover how to conditionally add keys to JavaScript objects with the spread operator.

Sum similar keys in a JavaScript array of objects

December 14, 20203 min readJavaScript

Discover how to sum similar keys in a JavaScript array of objects.

Using the JavaScript spread operator

December 07, 20202 min readJavaScript

Learn how to use the JavaScript spread syntax and the spread operator.

Using rest parameters in JavaScript functions

December 01, 20201 min readJavaScript

Discover how to use rest parameters in JavaScript functions.

Double Equals versus Triple Equals in JavaScript

August 02, 20203 min readJavaScript

What is the difference between the two equality operators in JavaScript?

The difference between null and undefined in JavaScript

July 12, 20202 min readJavaScript

What is the difference between null and undefined in JavaScript?

Check for a value in a JavaScript Array

July 02, 20201 min readJavaScript

Three JavaScript functions that you can use to check if a value exists in an array.

String interpolation in JavaScript

June 01, 20203 min readJavaScript

What is string interpolation in JavaScript and how can it be used?