The new Arr::join() method in Laravel 9.x

1 · Amit Merchant · May 7, 2022, 2:42 p.m.
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...