I love those three little dots in JavaScript. Mat Marquis has a nice article covering them (“destructuring” as it were) nicely. And agreed there are plenty of times they can be confusing. What always gets me is that sometimes it is used to “pluck off” the remaining the values from an array or object (which is “rest”), and sometimes it’s used to “splat on” all the values from an array or object (which is “spread”).
Featured
Lessons Learned from Recreating a Styled Dialog
Sometimes pretty simple HTML elements have a lot of things to consider and take care of, from interactivity, styling, accessibility, and more.
