👩💻 Join our community of thousands of amazing developers!
A while back, I have written an article on how to convert arrays to human-readable lists in JavaScript. It’s a built-in feature using the Intl.ListFormat object that lets you do that. Essentially, this will let you deflate items of an array in a human-readable form. So, if we have the following array… const books = [ 'Harry Potter', 'Bhagavad Gita', 'The Alchemist', 'Birthday Girl' ] …it can be deflated in this format. “Harry Potter, Bhagavad Gita, The Alchemist, and Birthday Gi...