News for hackers. Stuff that matters.
Re:Emerging JavaScript pattern: multiple return values by Drakim on Thursday October 29, 2020 @07:31AM (#24929357)
Did we read the same article?

I do absolutely not see the author advocating returning values in an array instead of an object, in fact, they seems to be saying the exact opposite? (starting with the array example, and then going to the object example afterwards)

The primary point of the article is the destructuring which makes the syntax much nicer.

There are no comments on this comment yet.