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 ...
glad.hashnode.dev8 min read