Why Is Array/Object Destructuring So Useful And How To Use It

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 มิ.ย. 2024
  • ES6 is one of the best things that ever happened to JavaScript. It added a ton of new features and syntax that made JavaScript so much more enjoyable to work with. One of the best features that ES6 added was object and array destructuring. With destructuring you can take apart an object or array incredibly easily. This has many use cases from making variable assignment much cleaner to the all important function argument destructuring. In this video I am going to show you exactly how destructuring works, and the best places to use destructuring.
    🚨 IMPORTANT:
    React Course Email Signup: email.webdevsimplified.com/
    📚 Materials/References:
    ES6 Playlist: • JavaScript Promises In...
    Destructuring/Spread Operator Blog Article: blog.webdevsimplified.com/202...
    🧠 Concepts Covered:
    - Array destructuring
    - When to use array destructuring
    - How to use the spread operator with arrays and destructuring
    - Object destructuring
    - When to use object destructuring
    - How to use the spread operator with objects and destructuring
    - The importance of object destructuring
    🌎 Find Me Here:
    My Website: webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    #Destructuring #WDS #ES6

ความคิดเห็น • 657

  • @RedLagoona1
    @RedLagoona1 4 ปีที่แล้ว +623

    This is not a tutorial... This is a piece of art.

    • @sephstar-offical
      @sephstar-offical 2 ปีที่แล้ว

      definatly

    • @shlomoh.6148
      @shlomoh.6148 2 ปีที่แล้ว +9

      His face is piece of art xD #nohomo

    • @kenthankgod2619
      @kenthankgod2619 ปีที่แล้ว +3

      @@shlomoh.6148 dude 🤨

    • @Winter_Wyvern1
      @Winter_Wyvern1 ปีที่แล้ว

      @@sephstar-offical defiynaetly

    • @DarrenJohn10X
      @DarrenJohn10X ปีที่แล้ว

      @RedLagoona1 Wait until you jump into Kyle's "Learn React Today" course! It's the same but even better in all the ways that make WDS stand out on TH-cam compared to many competitors!

  • @dan110024
    @dan110024 3 ปีที่แล้ว +99

    Kyle is King at making his mistakes look like not mistakes...
    'we'll log street.... but as you can see there is no street...'

    • @youtubewts
      @youtubewts 2 ปีที่แล้ว +6

      😂 There's a glitch in the video where it looks like the recording breaks, he works out what's gone on and then he gets to the covering up part... nicely done! 😂

  • @21agdmnm
    @21agdmnm 3 ปีที่แล้ว +79

    this is probably the 6th time I come back to this video lol.

    • @OrincyWhyteDesigns
      @OrincyWhyteDesigns 2 ปีที่แล้ว

      My second 😂😂 I’m pretty sure I’ll be back in a month

  • @WitlessMean
    @WitlessMean 4 ปีที่แล้ว +178

    You're probably the only guy I know of who keeps things simple with easy to follow examples while also speaking clearly and quickly within short videos with multiple examples. It honestly surprises me every time. Thank you. If I get through my bootcamp it'll literally be because of you, Steve Griffith, and Techsith.

    • @harrazmasri2805
      @harrazmasri2805 2 ปีที่แล้ว

      @THE KINGDOM EXPERIENCE I didnt, i still in my own BootCamp, but it has been years

    • @chase4972
      @chase4972 6 หลายเดือนก่อน

      That's becos he knows and understand what his doing. wen you truly understand what your doing, you will b able to teach a 3 years old child...

  • @theprince08853
    @theprince08853 4 ปีที่แล้ว +78

    I'm a backend dev and I would just like to say from my perspective this was the best explained and straight to the point video I've seen. Subbed.

  • @radanmitasik8793
    @radanmitasik8793 4 ปีที่แล้ว +212

    currently you are my main source of js exploration,still finding out new information..thank you for what you are doing

    • @WebDevSimplified
      @WebDevSimplified  4 ปีที่แล้ว +26

      You're welcome! I am really glad my videos are helpful for you.

    • @DamianTew
      @DamianTew 3 ปีที่แล้ว +1

      I'm right there with you Radan!

    • @anjalichauhan5169
      @anjalichauhan5169 2 ปีที่แล้ว

      @@WebDevSimplified आप हमारे देवता हो 🙏

    • @zanngoc
      @zanngoc ปีที่แล้ว

      Exactly the same here. This man is world-champion in this sport! :D

  • @elle9834
    @elle9834 3 ปีที่แล้ว +8

    Your tutorials are super useful, the fact that they're quick means it only takes a few mins to watch them if you forget something and you never have some long exposition and always get straight to the point.
    Aka: 10/10 videos

  • @joqiao400
    @joqiao400 4 ปีที่แล้ว +10

    Somehow when I'm doing projects and get stressed watching your tutorials helps to calm down. I think it's that learning something from someone who really covey the concepts so clear help take the stress away. Really appreciate you doing this!

  • @levatruskavec2199
    @levatruskavec2199 4 ปีที่แล้ว +228

    01:23 - Destructuring Array
    02:35 - SPREAD Operator (Array)
    03:25 - SPREAD combaining
    04:10 - Functions
    06:35 - Object destructuring // Based on the key
    08:19 - SPREAD (Object)
    08:50 - Destructuring Nested Objects
    09:43 - Combine Two Objects
    10:42 - Inside Functions Inside Arguments
    ЗЫ (Don't thank)

    • @foxjonesofficial
      @foxjonesofficial 3 ปีที่แล้ว +3

      Don’t thank? Well that’s dumb

    • @vedantthombare1028
      @vedantthombare1028 3 ปีที่แล้ว +1

      th-cam.com/channels/33whXQsED5bXjbgt-ICQ1Q.html

    • @s.akhtarjoomun263
      @s.akhtarjoomun263 3 ปีที่แล้ว +3

      Not thank you very much!!

    • @rubeushagrid4131
      @rubeushagrid4131 3 ปีที่แล้ว +1

      Yes dont thanks and instead put time stamp along with the videos

    • @levatruskavec2199
      @levatruskavec2199 3 ปีที่แล้ว

      @@foxjonesofficial I am kidding =)

  • @brandonz404
    @brandonz404 3 ปีที่แล้ว +5

    I love how absolutely quick and concise all of your videos here. No matter what topic I need to learn about js or react I always check your channel first and you have it

  • @pcimring
    @pcimring 2 ปีที่แล้ว +2

    Thanks, Kyle! Your videos are clear, to-the-point and engaging - and fill in the gaps that many other tutorials leave out or gloss over. Much appreciated!

  • @UltraHossBoss
    @UltraHossBoss ปีที่แล้ว +4

    Hey man just wanted to drop a comment thanking you for the content. I've been developing for close to a decade now and your videos have been helping me brush up on some of the newer features of JS. You're awesome!

  • @mozahedulislam1987
    @mozahedulislam1987 3 ปีที่แล้ว +5

    Where have you got this talent? Real genius. Its a masterpiece.

  • @jorge88824
    @jorge88824 4 ปีที่แล้ว +10

    One of the best channels based on web development. Amazing content and teaching skills. Great examples following the KISS principle. Keep it up, bro! +1 from Bulgaria.

  • @heykike
    @heykike ปีที่แล้ว +1

    man, this is 3 years old and still is really really reaaaally good!!
    Well and simply explained.
    Fast pace.
    Every little piece of detail covered... I regret not having found your channel before.
    Will check your courses - do you have a pay discord channel for Q&As ??

  • @tanzeelahmed2055
    @tanzeelahmed2055 3 ปีที่แล้ว +4

    I never thought of gaining so much knowledge in 13 minute video!

  • @aleksarakic6023
    @aleksarakic6023 2 ปีที่แล้ว +2

    3 years later, still relevant, short, beautiful and simple! Thank you

  • @thejonellwood
    @thejonellwood 2 ปีที่แล้ว +2

    Dude!! I have tried to understand destructuring so many times! This is wonderful! It's clear and concise and I feel like I understand it now. Thank you so much for make this!

  • @rpcarde
    @rpcarde ปีที่แล้ว +1

    This guy always has the best tutorials. Easy, clear and simple to understand.

  • @suryaabbisetti2223
    @suryaabbisetti2223 3 ปีที่แล้ว

    I like how you're straight to the point. clear and concise explanation. Very good content man. You got a new subscriber.

  • @keiwa11
    @keiwa11 3 ปีที่แล้ว +2

    Ouh, that feeling when you find a tutorial so spot on and amazing you wanna cry with happiness. Instant subscribe.

  • @KennieDevCamp
    @KennieDevCamp 4 ปีที่แล้ว +3

    You’re really great with this Kyle. I thought I had learnt destructuring until I saw this. I love this video.

  • @faisalhossain151
    @faisalhossain151 4 ปีที่แล้ว +8

    thanks for the tutorials! your voice is so soothing when listening to these tutorials, encourages me to do more web development :)

    • @WebDevSimplified
      @WebDevSimplified  4 ปีที่แล้ว +2

      That is awesome! I'm glad I can help motivate you on your journey.

  • @av03
    @av03 4 ปีที่แล้ว +1

    I thought i learned all about destructuring until i watch this, my knowledge about this technique increases not only this one but the other things you share to us. As always thank you Kyle

  • @lektimsina2132
    @lektimsina2132 4 ปีที่แล้ว +1

    Love your work man, your teaching style, very easy to understand.

  • @michaelshaw7652
    @michaelshaw7652 3 ปีที่แล้ว

    The best TH-cam channel on showing some cool feature in JS I've seen so far. Even a seasoned programmer will appreciate it.

  • @horacinis
    @horacinis 3 ปีที่แล้ว

    Thank you for taking the time to make these videos! You are great at explaining these concepts! Much appreciated!

  • @datajames
    @datajames 3 ปีที่แล้ว

    Really like how you break it down into usable code, I'm a beginner and you've made it alot easier applying new code into my own projects. I can see progress everyday after watching your videos . Don't change the way you do things.

  • @bitetheapple8
    @bitetheapple8 ปีที่แล้ว

    the best explanation I've seen so far on this subject. Thank you!

  • @jonathanmanner5396
    @jonathanmanner5396 2 ปีที่แล้ว +1

    This is... just beautiful, I mean I knew most of this existed, but the way you take advantage of these features is pure magic. I'm a beginner, but this will definately make me a little better :)

  • @KJPrince
    @KJPrince ปีที่แล้ว

    Best explanation of object destructuring I've seen. Thanks!

  • @joanclarke2724
    @joanclarke2724 3 ปีที่แล้ว

    Great tutorial. Your explanations are always clear, precise and on point. I am so grateful for your videos. I appreciate them and I appreciate you! Thanks a ton!

  • @umakhaitov
    @umakhaitov 4 ปีที่แล้ว

    One new Subscriber just joined. So far the best explanation about Destructuring ES6 I found. Thank you !

  • @zenful-meditablesawing
    @zenful-meditablesawing 3 ปีที่แล้ว +1

    Your videos are so clear and concise, thanks man! This is the second time that watching this video has got me out of a React project stall.

  • @zephyr_koryami
    @zephyr_koryami ปีที่แล้ว

    I like how methodically he teaches this. Very easy on the mind, lets you have moments to take it in while he's breaking it down. While having a fluctuating voice can be annoying, and monotone can lull you to sleep, he has perfected the perfect speed and tonality of talking. At the end, when that bit of personality showed, that cracked me up, lol. this guy is so awesome.

  • @byronnyayiera1393
    @byronnyayiera1393 2 ปีที่แล้ว +1

    Best tutorial ever on destructuring seen in TH-cam 👏👏👏

  • @rdmepicfail5722
    @rdmepicfail5722 ปีที่แล้ว

    This is reeeally useful and clarifies a lot of coding i've seen or even used without fully understanding. Thanks a lot !

  • @yahayaoyinkansola8258
    @yahayaoyinkansola8258 7 หลายเดือนก่อน

    Thanks Kyle for explaining this concept well, you really did a good Job

  • @busyrand
    @busyrand 2 ปีที่แล้ว

    Very well done. I've only seen the technique used but never explained... I struggled to piece together Destructuring and the use of spread operators as something that worked for both arrays and objects. Thank you immensely.

  • @NatalieFamula
    @NatalieFamula 2 ปีที่แล้ว

    thank you for your videos! I have been coding for years but always struggled to explain well to beginners. Seeing the way you present the information has helped me to mentor others 😄

  • @squeakycamp207
    @squeakycamp207 3 ปีที่แล้ว

    Very nice! This and many other of your videos have really helped me understand different concepts, that are not explained very well in a course that I am taking!
    Thank you!

  • @sandeepchauhan7918
    @sandeepchauhan7918 3 ปีที่แล้ว

    After using It so many times, now I got the clarity. Thank you, great explanation.

  • @salmanZafar74
    @salmanZafar74 4 ปีที่แล้ว

    Very concise and to the point. Subscribed!

  • @xuangelina5032
    @xuangelina5032 11 หลายเดือนก่อน

    What a genius!
    I have to comment to let you know how much I appreciate your lesson. It's so simple and easy to follow you're my God in programming. Thank you! (would not have appreciated it that much after watching 30' video again and again still did not get it until I found your video)

  • @Jordan-rv8gl
    @Jordan-rv8gl 2 ปีที่แล้ว

    Amazing content as always. You make complex topics seem simple af!

  • @RameenFallschirmjager
    @RameenFallschirmjager 4 ปีที่แล้ว

    Hands down the best and most comprehensive explanation on destructuring out there.

  • @zelmasedano5070
    @zelmasedano5070 2 ปีที่แล้ว

    Amazing tutorial. Mentor told me to learn about Destructuring today and this was hands down the best video I found

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 2 ปีที่แล้ว

    I have a learned a new concept from your video demo. I found it very interesting. Thank you.

  • @victorpinedo5121
    @victorpinedo5121 3 ปีที่แล้ว

    thanks bro, well done, there is so many youtube channels trying to explaing topics for ES6, but you style really likes so much.. regards

  • @Minimaos1
    @Minimaos1 4 ปีที่แล้ว

    You teach very clearly man. Awesome job.
    Thanks man!

  • @craurore
    @craurore 3 ปีที่แล้ว

    Great clear! And you in the little bubble is actually good, gives dynamic to the content.

  • @gaudenzin
    @gaudenzin 2 ปีที่แล้ว

    This was remarkably well explained! Kudos to you

  • @josef2577
    @josef2577 3 ปีที่แล้ว

    Often when I search for a Javascript feature tutorial, this channel pops up at the top. Thank you so much for your effort.

  • @SuperLefty35
    @SuperLefty35 2 ปีที่แล้ว

    Bro this was awesome. Been going over this for days and your 13 min vid cleared absolutely everything up thank you

  • @thirteeenthstep
    @thirteeenthstep 2 ปีที่แล้ว

    Beautifully explained! Thank you.

  • @domceja62
    @domceja62 2 ปีที่แล้ว

    Excellent explanation sir! Clear and concise. Just subbed.

  • @bluelion978
    @bluelion978 2 ปีที่แล้ว

    Kyle you explain so well. Thanks for the work you put to help many people.

  • @muctar_s
    @muctar_s 3 ปีที่แล้ว

    Incredibly helpful explanation. Thanks WDS! :)

  • @adityakujur1724
    @adityakujur1724 3 ปีที่แล้ว

    Man, you videos are spot on, to the point and nicely explained with great examples.

  • @lolcomment
    @lolcomment 4 ปีที่แล้ว

    Succinct and well paced. Really appreciate it dude

  • @rebeccaindy
    @rebeccaindy 2 ปีที่แล้ว

    Amazing, as always! I really need to just takee time to watch all your videos.

  • @bbcwccccc
    @bbcwccccc 3 ปีที่แล้ว

    thank you, reading about destructuring was so confusing and this really helped!

  • @sabrinapyles563
    @sabrinapyles563 3 ปีที่แล้ว +1

    Very clearly explained and demonstrated. Thank you.

  • @TheCelecis
    @TheCelecis 3 ปีที่แล้ว

    Thank you for this video, short and simple. Really easy to understand

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 11 หลายเดือนก่อน

    Simple and clear! Thank you! 💛

  • @IanaCaldas
    @IanaCaldas 4 ปีที่แล้ว

    This is the best video ever about array and object destructuring! Thank you so much!

  • @samer820
    @samer820 ปีที่แล้ว

    Simply amazing! I love your videos. Simple and clear! 👍

  • @spearbro
    @spearbro 3 ปีที่แล้ว

    Thanks, kyle! One of my favourite content providers

  • @shareenacruz7254
    @shareenacruz7254 3 ปีที่แล้ว

    I have never watched a tutorial that was easy to understand as this one. sooooo clear.

  • @knightmarerip711
    @knightmarerip711 2 ปีที่แล้ว

    You are the best! I just started reviewing JS, and that ... operator kept bugging me. I did not know what it was, nor did I know what it was called, and it was so difficult searching for ... Then out of nowhere, your video comes along for something else I was looking up and it included the SPREAD operator! OMG! This video just made my week!!! Thanx for this!!!

  • @srinivasreddydanda1777
    @srinivasreddydanda1777 4 ปีที่แล้ว

    Your explanation is clear and easy to grasp... Keep posting good content. Thanks a ton!!

  • @andrewtcoder
    @andrewtcoder 2 ปีที่แล้ว

    Perfect explanation! Thank you very much!!!

  • @bernhardsmuts2265
    @bernhardsmuts2265 4 ปีที่แล้ว

    Very well explained Kyle! Thanks!

  • @xylesx
    @xylesx 4 ปีที่แล้ว

    Thank you, I found this useful. :) Keep doing what you're doing! This channel should be more popular.

  • @nazrulislam7727
    @nazrulislam7727 2 ปีที่แล้ว

    Exceptional. So informative and insightful. Thank you Mr. Kyle.

  • @iamkrishn
    @iamkrishn 3 ปีที่แล้ว

    This channel should have millions of subscribers!
    Amazing stuff Kyle! 🔥

  • @muhammadainuddin4650
    @muhammadainuddin4650 3 ปีที่แล้ว

    Great Explanation. Love the way you explain everything.

  • @carlosl-f2433
    @carlosl-f2433 ปีที่แล้ว

    Thank you. I just got back a bit of confidence in js...for react. You made it make sense.

  • @ConsiderMeMilesDavis
    @ConsiderMeMilesDavis 3 ปีที่แล้ว

    Thanks for the great tutorial Zach Morris!

  • @mchatin8862
    @mchatin8862 3 ปีที่แล้ว

    This is by far the best TH-cam channel for Javascript....Great content and always on point.....thanks man

  • @alvaroprietovideos
    @alvaroprietovideos 2 ปีที่แล้ว

    Thank you for sharing, I love your videos. Sometimes, (like I did right now), I watch them several times!

  • @ghostpieces2362
    @ghostpieces2362 2 ปีที่แล้ว

    Amazing instruction, exactly what I needed. Thank you :)

  • @TheOptidude
    @TheOptidude 4 ปีที่แล้ว

    Thank you so much for having such clear explanations on all your topics. Please keep making these excellent videos....

  • @nicolasdupere
    @nicolasdupere 3 ปีที่แล้ว

    You are the only person who can teach and I understand 100% of what you explain. 10/10

  • @sohailfx
    @sohailfx ปีที่แล้ว

    Thank you .... this is just the best new thing i learened in Javascript .. I wish you joy and happiness...

  • @federicoprat9093
    @federicoprat9093 2 ปีที่แล้ว

    Was such a complicated topic for me. Now after this video I can say I understand it. Thank you very much

  • @butlerfuqua
    @butlerfuqua 4 ปีที่แล้ว

    Thanks for the help! I am liking your channel more and more!

  • @shauncs
    @shauncs 3 ปีที่แล้ว

    thanks for the clear and simple explanation!

  • @Manny-ng9vo
    @Manny-ng9vo 2 ปีที่แล้ว

    You definitely so make the web simplified! Subbed :)

  • @sanghvian
    @sanghvian 3 ปีที่แล้ว

    Man you're just too friggin good at these !!!!!!!!!!!!

  • @ibraheemhajjar91
    @ibraheemhajjar91 2 ปีที่แล้ว

    I'm learning web development myself, and your channel is the best for me to understand anything from zero, many thanks for you and best of luck

  • @0x0abb
    @0x0abb 2 ปีที่แล้ว

    Great style of teaching - always!

  • @rajansadhu7469
    @rajansadhu7469 2 ปีที่แล้ว

    Very well explained the concept....so far best video seen for this topic explanation,....!

  • @AlisaPopova-hb8bi
    @AlisaPopova-hb8bi ปีที่แล้ว

    Love this tutorial😍Thank you💙

  • @MrMarkgyuro
    @MrMarkgyuro 4 ปีที่แล้ว +1

    thank you, these are really useful and straightforward! : )

  • @yarasoler
    @yarasoler ปีที่แล้ว

    Your videos always help me !

  • @humbertogarcia9404
    @humbertogarcia9404 2 ปีที่แล้ว

    dude you're the best teacher on the world 👏🏽👏🏽👏🏽👏🏽 thanks for evrything

  • @talksister4496
    @talksister4496 3 ปีที่แล้ว

    Thank you very much for sharing your knowledge. I have spent ages trying to understand this, it has caused me so many headaches, I've lost count! Thank you for taking the time to make it simple, and confirming most things aren't difficult to understand. Your efforts and commitment clearly scream out that knowledge is everyone's right. Keep up the wonderful work, it is deeply appreciated, a final thank you - just in case I didn't express my gratitude enough - Roaring 👏👏👏👏👏👏 for you.

  • @johmcg64
    @johmcg64 3 ปีที่แล้ว

    Thank you for the professional javascript engineering teaching.

  • @lemueljunior
    @lemueljunior 4 ปีที่แล้ว +6

    Dude, I think this the third tutorial video I watch from you and the way you explain things is awesome! I just had to subscribe.
    Your channel has a great potential to become one of the top 10 in web development.
    Thanks for sharing your knowledge in such a simple and smart way =)

    • @WebDevSimplified
      @WebDevSimplified  4 ปีที่แล้ว +2

      Thank you so much! That really mans a lot to me. As long as I can reach out and help people like you on your journey that is enough for me. I wouldn't mind being in the top 10 though ;P