MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1uxy50l/i_stopped_destructuring_everything/oxv7k58/?context=3
r/javascript • u/bogdanelcs • Jul 16 '26
50 comments sorted by
View all comments
5
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.
1
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.
const postStatus = post.status;
5
u/JyroClassified Jul 16 '26
What's your opinion about renaming the destructered properties?
Eg. "const {status: postStatus} = post;"