How to convert arrays to human-readable lists in JavaScript

1 · Amit Merchant · July 11, 2021, 5:41 p.m.
Oftentimes, you might end up in situations where you have an array and you just want to deflate the entire array content in a human-readable form. Or more specifically in a list-like format. For instance, let’s say we have the following array for example. const books = [ 'Harry Potter', 'Bhagavad Gita', 'The Alchemist', 'Birthday Girl' ] Now, I want to deflate this array in the following form. …Harry Potter, Bhagavad Gita, The Alchemist, and Birthday Girl. How would you achieve ...