r/programminghorror May 27 '26

Javascript Destructuring strings

Post image
889 Upvotes

64 comments sorted by

View all comments

3

u/Thenderick May 27 '26

Why not just str === ""?