Destructuring JavaScript Arrays Object(ively)
TL;DR Since JavaScript arrays are basically objects (with special behavior for index properties), they are valid targets for object destructuring. Hence, making the following destructuring statements equivalent. // Array to be destructured const RGB ...
Oct 30, 20208 min read99
