Making list formatting easy with Intl.ListFormat
Introduction
Let's say you have an array containing your favorite dog breeds:
const favoriteDogs = ['Corgi', 'German Shepherd', 'Goldendoodle'];
Your goal is to format that list as a string like "Corgi, German Shepherd, and Goldendoodle." One option...
zachsnoek.hashnode.dev2 min read