This is a follow up article to my previous article on Array Destructuring. Except you have an idea of destructuring, you should read it.
First, l...
For further actions, you may consider blocking this person and/or reporting abuse
Great article! Picked up some tricks that I wish I knew before...
I always found confusing or misleading the syntax for assigning new variable names in object destructuring. Using
:
inside an object takes my mind to property assignment from right to left, not new variable assignment from left to right. Also, it is too similar to Typescript's type declaration:const num: int = 5;
And fairly different (and less verbose than) using new variable names in import object destructuring:
import { Component as Comp} from "React";
I'm glad you picked up some tricks Sammy. Thank you for reading.
Thanks for this post! I learned some new tricks; your explanations of the pitfalls with object literal destructuring assignment with previous variable declaration were especially insightful :-)
I'm glad you learnt some new tricks. Thanks for reading.
Nice article sarah chima. I am learning a lot of things in this article.
Thanks for spending time for writing this article
I'm glad you like it. 😊
This was quite useful. Thank you for watering down the vagueness of the concept.
Rest in Object Destructuring: [ERROR]
var person = {name: "Sarah", country: "Nigeria", job: "Developer" friends: ["Annie", "Becky"]};
Something missing comma between, "Developer" and friends.
Nice article, thx!
Thanks for the detailed and accurate explanation of object destructuring!
Thanks for writing a great article which covers a lot of details.
Thank you..Sarah
Huh, got stuck on Javascript courses about Destructuring, but your post is really clear and will surely help me to defeat the evil forces of those exercices.
Thanks !
I'm glad you found my post helpful
This was the most excellent article on object destructuring I've ever read. So thorough and easy to understand.
Thanks a lot for reading.
This is the best article
Omo, finally it's clear. Thanks, nwanne.
Thank you. Concise explanation just like you did in the array destructuring.