Object keys, values, and entries methods

Поделиться
HTML-код
  • Опубликовано: 25 июн 2018
  • This video covers three Object methods - keys( ), values( ) and entries( ).
    All three methods will create an iterable Array from the Object that you can then use in conjunction with other Array and iterable methods.
    Code GIST: gist.github.com/prof3ssorSt3v...
    MDN Object.keys ref: developer.mozilla.org/en-US/d...
    MDN Object.values ref: developer.mozilla.org/en-US/d...
    MDN Object.entries ref: developer.mozilla.org/en-US/d...

Комментарии • 169

  • @guiguitoLemon
    @guiguitoLemon 4 года назад +29

    Dude, straight to the point. Everything I needed, and although simple it was so hard to find it all compiled in one go like that. Go Canada!

  • @daeroi3116
    @daeroi3116 2 года назад +6

    I really needed this. Concise, clear, straight to the point, and easy to understand. I don't get why free RUclips videos break down concepts way better than courses I had to go and pay for. Thanks a lot.

  • @kris8536
    @kris8536 4 года назад +10

    Steve, you helped me solve in 2 minutes what I have spent the last hour on. THANK YOU!

  • @robertreimann1846
    @robertreimann1846 4 года назад +1

    Wow man, that was really very great! Thank you a lot. I've been looking up tutorials on the subject for the whole day... And this tutorial here is the best by far :)

  • @vladimirzizic6874
    @vladimirzizic6874 4 года назад

    I didn't think I even needed any further clarification on objects and arrays until I came across this video. This was perfectly explained.

  • @vladislavbarbarii2089
    @vladislavbarbarii2089 6 лет назад +23

    Great explanation. Thanks a lot

  • @Jeff-2112
    @Jeff-2112 6 лет назад +1

    I wasn’t aware of those methods. Great explanation as always!

  • @cjm101
    @cjm101 3 года назад

    I'm new to all of this and the way you explain is so clear. Thank you for these videos!

  • @soyaro
    @soyaro 5 лет назад +2

    Thanks Steve, you've saved me hours of debugging!

  • @martingustafsson3828
    @martingustafsson3828 4 года назад

    Great tutorial! Straight to the point and well explained.

  • @TheMCVR
    @TheMCVR 5 лет назад +6

    Super depth in your voice, I like your voice very much it is very pleasant to hear.

  • @javxa
    @javxa 2 года назад

    Simple yet elegant explanation. Thanks a lot!

  • @mishanwong2393
    @mishanwong2393 3 года назад

    Thank you so much Steve! This is very easy to follow and it helps me out a lot!

  • @benidibatia8918
    @benidibatia8918 4 года назад +1

    Well-detailed explanation straight to the point.

  • @rotrose7531
    @rotrose7531 4 года назад

    Your tutorials seriously provide something one really want to learn. Thank you very much,.

  • @danielaparicio3692
    @danielaparicio3692 5 лет назад

    THANK YOU STEVE, this explanation helped so much

  • @tonykieling7664
    @tonykieling7664 5 лет назад

    Very clear and objective!! Thanks!

  • @user-id7tt9le4o
    @user-id7tt9le4o 8 месяцев назад

    Prof, your videos are devoid of fluff. You go straight to applicable functionality. Thanks for making it easier.

  • @nedlathium9492
    @nedlathium9492 4 года назад

    Perfectly explained, thank you !

  • @jessicarodrigues-dlouhy575
    @jessicarodrigues-dlouhy575 Год назад

    YOUR EXPLANATION WAS WONDERFUL!!!!!

  • @johnsonogbu8697
    @johnsonogbu8697 Год назад

    Great Video.
    Short and straight forward

  • @SrtaNatyOliveira
    @SrtaNatyOliveira 4 года назад

    Oh god... thank you so much! Great explanation! Following the channel right now

  • @calebcadainoo
    @calebcadainoo 2 года назад +1

    Very clear an concise 👌. Thanks man

  • @ChrisTian-ox5nr
    @ChrisTian-ox5nr 4 года назад +1

    Great Technical communication. Thank You! This is a very good Tutorial.

  • @staffordokoth5851
    @staffordokoth5851 3 года назад

    I had to stop the video at 2:35 to come and thank you for your explanation. Straight and precise.Thank you again Steve

  • @emailme9112
    @emailme9112 3 года назад

    Nicely done! Thanks for the education.

  • @jd_flick
    @jd_flick 3 года назад

    probably the best video I've seen on explaining this

  • @madeyeatreides4055
    @madeyeatreides4055 5 лет назад +1

    Thanks this helped me, love the GOT reference😂

  • @josephgarza5973
    @josephgarza5973 2 года назад

    Thanks a lot for the helpful video! Awesome job!

  • @beccaadolph
    @beccaadolph 4 года назад

    Excellent Video - thank you.

  • @erickchavez4551
    @erickchavez4551 Год назад

    Amazing explanation. Thanks so much!

  • @milanm9907
    @milanm9907 5 лет назад

    thank you , great explanation!

  • @claystation6360
    @claystation6360 4 года назад

    Thanks buddy! Great video, gunna subscribe. You have a nice teaching style

  • @rn2782
    @rn2782 7 месяцев назад

    simple and great explained! thanks

  • @chesterxp508
    @chesterxp508 2 года назад

    Another very cool tutorial!

  • @jase9389
    @jase9389 3 месяца назад

    Thx for the video, I was lost as to the difference, and this video made it clear.

  • @nasirshaik2662
    @nasirshaik2662 5 лет назад

    very detailed explanation thankyou some much

  • @chrislopez9665
    @chrislopez9665 3 года назад

    Thank you so much! Great video!

  • @pasej5
    @pasej5 Год назад

    best video for keys, values and entries., you gained a subscriber.

  • @ademolaadeagbo9011
    @ademolaadeagbo9011 5 лет назад

    can't help it, just had to comment this is really good. keep it up

  • @artsenm1327
    @artsenm1327 6 лет назад

    Great tut Steve. 👍

  • @harsh_here
    @harsh_here 2 года назад

    You're a legend, Sir. Thank you so much!!!!

  • @Wwllmm_
    @Wwllmm_ Год назад

    Helped a lot, thanks !

  • @SergioTortosa60m32
    @SergioTortosa60m32 5 лет назад

    Thanks for the explanation.

  • @codeymaze.
    @codeymaze. 2 года назад

    Easy explanation . Thank you

  • @xesiusprime9360
    @xesiusprime9360 3 года назад

    great explanation! thanks

  • @alexsilva820
    @alexsilva820 4 года назад

    So great bro I love those methods

  • @adziiia1
    @adziiia1 4 года назад

    thank Steve , nice explanation!

  • @jordancoakley4832
    @jordancoakley4832 3 года назад

    Great video. Thank you, helped alot!!!

  • @catetodev5998
    @catetodev5998 Год назад

    Thank god I know english, because your class was AMAZING, so simply! Thanks

  • @tathagat9586
    @tathagat9586 Год назад

    Wow, absolutely amazing 🙏

  • @BestFoodReviewFeatured
    @BestFoodReviewFeatured 2 года назад

    Thank you, this has help me understand better what .keys and .entries does.

  • @coffeeisthepathtovictory1290
    @coffeeisthepathtovictory1290 Год назад

    Thank you for making this video

  • @muhammadashfaq913
    @muhammadashfaq913 5 лет назад

    Great explaination thumbs up

  • @rachelbourne5338
    @rachelbourne5338 3 года назад +3

    I'm going through codecademy at the moment and there are bits that confuse me for various reasons, these videos you've uploaded are helping massively! They have helped me cement so many bits of knowledge in place and I feel like i see clearer afterwards :D

  • @olawaseem
    @olawaseem 4 года назад

    Thank you from the heart.

  • @GauthamHC99
    @GauthamHC99 2 года назад

    Really very helpful. Thank you so much :)

  • @kalishamalama5805
    @kalishamalama5805 5 лет назад

    Great stuff Man

  • @vcnswamy8461
    @vcnswamy8461 Год назад

    Excellent, Stright to the Point

  • @Mrshaider79
    @Mrshaider79 4 года назад

    Greeat job!! Thank you!

  • @DeepakSingh-oj9ot
    @DeepakSingh-oj9ot 4 года назад

    awesome Explanation..

  • @sureshanands8594
    @sureshanands8594 5 лет назад

    Nice explanation .. , 👏👏✌

  • @mustafaalawad2667
    @mustafaalawad2667 5 лет назад

    thanks a lot you are amazing and your explanation was so great and useful :)

  • @Thestorbob
    @Thestorbob 3 месяца назад

    Amazing, thank you!

  • @abdulsami4618
    @abdulsami4618 4 года назад

    Great Explanation Brother! You Deserved A Like From ME! Great Teaching Skills For Newbies.

  • @slimyelow
    @slimyelow 4 года назад +1

    What a great voice!

  • @divyanshchoukse5454
    @divyanshchoukse5454 Год назад

    Great explanation
    BTW nice to see a GOT fan

  • @kranthikumar5215
    @kranthikumar5215 3 года назад

    You are a great teacher

  • @aidangasim
    @aidangasim 3 года назад

    brilliant clarifying,,,thanks so muchhh)

  • @mezianibelkacem650
    @mezianibelkacem650 Год назад

    great explanation thank you and westeros example it's very nice too :D

  • @bahrametemadi2258
    @bahrametemadi2258 5 лет назад

    that was very helpful

  • @tutorsploitlearners2434
    @tutorsploitlearners2434 Год назад

    very well explained

  • @shawnwright4275
    @shawnwright4275 Год назад

    Very clear. Thanks @SteveGriffith

  • @EnzoAuditore
    @EnzoAuditore Год назад

    Thanks mate.

  • @saadsaif97
    @saadsaif97 4 года назад

    Thanks Man.

  • @christmasvillage3652
    @christmasvillage3652 4 года назад

    lol I am guessing that you may be a fan of Game of Thrones? Nice explanation of the three functions for object. Thank you so much.

  • @turkialharbi2136
    @turkialharbi2136 3 года назад

    Thank you!

  • @anshulmanapure1980
    @anshulmanapure1980 2 года назад

    Steve, this work of yours is gold. Truly.
    Edit: One doubt though. What if we had an anonymous function as a value of some key inside an object. What happens to that? I'm fairly new to JS and programming in general, but I haven't saw we declaring a function inside an array.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад

      The values assigned to the keys in an object can be anything, including an anonymous function.
      Functions in JavaScript are first class citizens. They can be passed around like any variable.

  • @ThatGuyDownInThe
    @ThatGuyDownInThe 4 года назад

    Good stuff.

  • @karma_yogi_42
    @karma_yogi_42 3 года назад

    awesome thanks!

  • @aleksandarstanisic1848
    @aleksandarstanisic1848 5 лет назад

    Ty mate ;D

  • @FromTheHeart-777
    @FromTheHeart-777 3 года назад

    Ty soo much!

  • @courtneybk9428
    @courtneybk9428 3 месяца назад

    i love your videos!

  • @SoumyajitMandal
    @SoumyajitMandal 2 года назад

    it really helps

  • @sangrammukherjee9495
    @sangrammukherjee9495 2 года назад

    Thank you soo much

  • @Martin-sy4jt
    @Martin-sy4jt 2 года назад

    THANK YOU 👏👏

  • @mohammadrifakat7
    @mohammadrifakat7 Год назад

    today I simply learned something interesting from this vidyo. Thanks for uploading.
    😍

  • @suvendubiswal6820
    @suvendubiswal6820 Год назад

    Very good video 1000 likes for u

  • @hamidray2429
    @hamidray2429 3 года назад

    Great. useful

  • @surmanikonsam3793
    @surmanikonsam3793 2 года назад

    thank you so much sir

  • @pyroghost11
    @pyroghost11 5 лет назад

    Thanks man! this was the clarification I just needed!

  • @chakravarthykukkala7666
    @chakravarthykukkala7666 4 года назад

    Great ExplaNATION

  • @jp-hz6br
    @jp-hz6br 3 года назад

    How do you change the name of a key. Say, if I wanted to add an ‘s’ character onto the end of keys that held array objects as their values?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад

      You cant change the name of a key. You can create a new key, copy the value of the old key to the new key and then delete the old one.

  • @meraatmostafavi7758
    @meraatmostafavi7758 Год назад

    thanks a lot

  • @alexhitchins4339
    @alexhitchins4339 4 года назад

    FANTASTIC!!! Such a good explanation. Thank you very much!

  • @barungh
    @barungh 5 лет назад

    As good as always - just one line - "these method will create array from Object then we can ... " - cleared my doubt, when I saw in few places map method is used after Object.entries - it created confusion.
    Aren't these ES8 methods ?
    Thank you so much.

  • @davidgriffin7632
    @davidgriffin7632 2 года назад

    Could you give any advice on how you'd access a specific entry without knowing the index number? Like if you were wanting to log 'Snow' without knowing it is [2][1], but you knew the key was 'jon'.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад

      The key concept is accepting the fact that objects are not built with sequential properties. There is no number associated with the properties. Object.keys() gives you a list of the possible properties. Don't think of it as the order of properties.

  • @oghenefokethompson7407
    @oghenefokethompson7407 4 года назад

    Thanks sir

  • @jaimedpcaus1
    @jaimedpcaus1 2 года назад

    This is great. How about other types of operations that could be done using an object like this?
    For example working with arrays against an object. How did it work superficially and under the hood?
    Thx

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад +1

      I have a whole playlist about Arrays - ruclips.net/video/arIhhRd1RPc/видео.html
      If you search for the keyword "Object" on my channel you will find a bunch of other related videos too.

    • @jaimedpcaus1
      @jaimedpcaus1 2 года назад

      @@SteveGriffith-Prof3ssorSt3v3 I'll go and look for the. I found code that goes like this let obj = {}:
      Let arr = ('a','b,'c');
      And at some point in a loop they go like this this obj[arr[i]] . I was wondering, in gullible mode, if this a multiplication of some sort. I.e A*B(i)??I??? 🙂

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад

      @@jaimedpcaus1 Not multiplication. Nested looping. ruclips.net/video/AqgVLYpBWG8/видео.html

  • @bribes_for_nouns
    @bribes_for_nouns 4 года назад

    So say we convert an object to an array so we can use methods on it easier. After doing this, how would we convert the newly updated array back into the object that it came from?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 года назад +1

      We wouldn't. We would have the original object plus the new information we got from the array methods.

    • @KishoreKumarmaistry
      @KishoreKumarmaistry 4 года назад +1

      Dock Adams if it's a two dimensional array, then we can use the Object.fromEntries(arr) to convert back to object