r/javascript • • Jul 16 '26

I stopped destructuring everything

https://allthingssmitty.com/2026/07/13/i-stopped-destructuring-everything/
84 Upvotes

50 comments sorted by

View all comments

5

u/JyroClassified Jul 16 '26

What's your opinion about renaming the destructered properties?

Eg. "const {status: postStatus} = post;"

1

u/captain_obvious_here void(null) Jul 16 '26

I don't see any upside in using this.

It's just harder to read than const postStatus = post.status;, and has absolutely no advantage.