r/programminghorror • • May 27 '26

Javascript Destructuring strings

Post image
887 Upvotes

64 comments sorted by

View all comments

Show parent comment

8

u/more_exercise May 28 '26

If I understood properly, it can be made to return arbitrary results, too. isStringEmpty([{a:NaN}]), for ex.

3

u/eloel- May 28 '26

Yeah that should work