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

← Prev

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

Next →

🔥 When working with an API, I often need to chunk up a list of users and send them in batches.

Array.from() is a great way to chunk up arrays because of the secondary argument being a map function.

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