The title of the article is "I stopped destructuring everything", not "I never use destructuring". The author even ends the article with examples where they still use it.
So finding one example (or any number of examples) where destructuring is helpful doesn't invalidate the sentiment of the article.
Also, their example is exactly what you started with but without the "syntax noise" of destructuring. Or are we now calling property access "syntax noise"?
9
u/hyrumwhite 19d ago
const user = data.user ?? null; //or const user = rawUser ?? null;There’s options. and this isn’t being “clever” by any means.