🔥 Use Intl.Collator() to easily sort or group strings regardless of their case or accent

← Prev

🔥 Here is a neat one! Since arrays are objects, we can destructure their indexes to easily grab the first and last items.

Next →

🔥 New in ES2019, we have a .flat() method to flatten these types of chunked arrays.

Syntax Podcast

Hold on — I'm grabbin' the last one.

Listen Now →

@wesbos Instant Grams

One sec, getting the gramz...

Beginner JavaScript

Beginner JavaScript

A fun, exercise heavy approach to learning Modern JavaScript from scratch. This is a course for absolute beginners or anyone looking to brush up on their fundamentals. Start here if you are new to JS or programming in general!

I post videos on and code on

Wes Bos © 1999 — 2020