r/programminghorror • • May 27 '26

Javascript Destructuring strings

Post image
887 Upvotes

64 comments sorted by

View all comments

Show parent comment

5

u/Denommus May 27 '26

It could be because you want to pattern match over it, it could be because you only want some specific elements in that context.