Year: 2022

Recent Post

Remove element from a JavaScript array by value

How to remove an element array element by value with and without mutating the original array.

ES2022: What’s new for JavaScript?

ES2022 introduces upgrades to classes, negative array indexing, top-level await in modules, and more!

Detect a user’s language preference with JavaScript

Detect and use a user's language preference to format display values.

Check if a value is an object in JavaScript

How to create a conditional that checks if a value is a pure object in JavaScript.

How to remove duplicate array values

Two ways you can remove duplicate values from an array.

Currency formatting in JavaScript

How to convert a numeric values to a currency value using the native Internationalization API.

Create a unique ID in JavaScript

Create a unique ID to identify a user or session with an embedded creation timestamp.

Merging several strings into one in JavaScript

Learn how to merge multiple strings into one in various formats, including a comma-separated list.

== vs === in JavaScript

Loose and strict equality operators help us test for a similarity between bits of data.

Self-executing functions in JavaScript

Self-executing functions are ideal for making a one-time process self-contained.