News for hackers. Stuff that matters.
Re:Emerging JavaScript pattern: multiple return values by ubertaco on Thursday October 29, 2020 @06:27AM (#24928943)
Returning an object and returning an array aren't exactly new concepts in Javascript? The only relatively-new part is destructuring assignment, but that's been around since 2015, since it was added in ES6.
Re:Emerging JavaScript pattern: multiple return values by ilaksh on Thursday October 29, 2020 @06:43AM (#24929072)
Right and the article is from 2018.

I have been using it for awhile.

Re:Emerging JavaScript pattern: multiple return values by joshribakoff on Thursday October 29, 2020 @07:19AM (#24929279)
Sure, but I’ve been returning objects for 10+ years
Re:Emerging JavaScript pattern: multiple return values by Drakim on Thursday October 29, 2020 @07:33AM (#24929372)
But you likely haven't been using destructuring assignment for 10+ years.
Re:Emerging JavaScript pattern: multiple return values by smegcicle on Thursday October 29, 2020 @10:05PM (#24938366)
lisp has destructuring-bind (and multiple-value-bind)