Jason Knight
Apr 29, 2024

--

The use of array in this case was for the cleaner and more reliable destructuring in the loop. Object destructuring is unreliable and bulky garbage, particularly if some parameters are optional.

Objects also can't be "spread" making passing them as "rest" to functions a pain in the ass.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

No responses yet