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 ...

Markdown supported · ⌘↵ to post
No responses yet.