• Tuesday , 12 December 2017

Javascript Reduce and Map In Depth. Explained.

Code Canyon



Everyone knows about Array.forEach, but Array.forEach is just an abstraction for Array.reduce, the core of the Array methods. Let’s dive in.

Original source

3d Ocean

Related Posts

41 Comments

  1. Miemie Li
    September 22, 2017 at 22:31

    you'e gonna go to heaven <3

  2. adamgm84
    September 22, 2017 at 22:31

    alright well this video is straight nectar

  3. casey brinegar
    September 22, 2017 at 22:31

    out fucking standing private !!!!!!

  4. ijarvez
    September 22, 2017 at 22:31

    Everyone confused about reduce need to watch this !!!

  5. Moustafa Mahmoud
    September 22, 2017 at 22:31

    hands down best explanation of reduce I've come across

  6. Catherine Kim
    September 22, 2017 at 22:31

    You nailed it, thank you!!!!

  7. aldo reva
    September 22, 2017 at 22:31

    wait so when we used reduce we dont need to create loop to access something inside of an array ? thats so powerful

  8. Ahmed Yasser
    September 22, 2017 at 22:31

    you'e gonna go to heaven <3

  9. Makarand Bhatamrekar
    September 22, 2017 at 22:31

    Now i understand reduce, thank you very much

  10. Ferdous Al-Quraeshi
    September 22, 2017 at 22:31

    Great stuff having a title that truly exacted the topic. Well done (y)

  11. ninja1124rs
    September 22, 2017 at 22:31

    Great video very help ful .

  12. Fran Ruiz-Tagle
    September 22, 2017 at 22:31

    Thank you! Thank you! Thank you!
    😀

  13. Kevin Genus
    September 22, 2017 at 22:31

    Fuck yeah! Excellent my dude!

  14. J.P Hallager
    September 22, 2017 at 22:31

    Wow man! Super nice

  15. Mahtab Alam
    September 22, 2017 at 22:31

    The content in the video is great but man one thing I'm finding super super annoying is the pitch of your voice is very up and down throughout the video.

  16. Lluís Mª Bosch
    September 22, 2017 at 22:31

    thank you!

  17. okeken
    September 22, 2017 at 22:31

    Thank you sir !

  18. aaronaaron aaron
    September 22, 2017 at 22:31

    What Great explanation!!!

  19. Pedro Morales
    September 22, 2017 at 22:31

    Dude you are awesome, THANKS!

  20. Fernando Reyna
    September 22, 2017 at 22:31

    so complicated

  21. Troy Carson
    September 22, 2017 at 22:31

    Thank you so much!

  22. Greg Small
    September 22, 2017 at 22:31

    OH MY GOD IT FINALLY CLICKED. Tytytyty

  23. glendon philipp baculio
    September 22, 2017 at 22:31

    awesome!

  24. Wayne Bunch
    September 22, 2017 at 22:31

    Very well done! I've had a hard time finding a good video.

  25. Shawn Southwell
    September 22, 2017 at 22:31

    Holy shit, this was an excellent explanation. I definitely have a better grasp on reduce now. Thanks!

  26. Ryan Godin
    September 22, 2017 at 22:31

    Thank you for this explanation!!

  27. Branko Zivanovic
    September 22, 2017 at 22:31

    Wow, this is what I call well explained.Thank you!

  28. -tAz-
    September 22, 2017 at 22:31

    4:57 Haha you said "all, item, reduce" instead of "all, item, index."

    I'm not making fun though. This is a very clear, easy-to-understand, and funny tutorial that helped me a lot.

  29. Gabriel Grover
    September 22, 2017 at 22:31

    Bravo good sir

  30. Josh Kneeland
    September 22, 2017 at 22:31

    Great tutorial, well explained!

  31. Baynes Media
    September 22, 2017 at 22:31

    Best explanation of reduce I have found. Thanks for making this.

  32. voodoochile80
    September 22, 2017 at 22:31

    amazing, finally someone explaining reduce along with some real life use cases… i guess my code will see much more array.reduce after watching this. Thank you very much.

  33. skisteepndeep
    September 22, 2017 at 22:31

    This is such a spot on explanation on map/reduce. You made this very accessible to a new coder. What still confuses me, is that on MDN, they have four arguments for the callback function. In your instance, all == previous value ( isn't this the final value to be returned and isn't it "pointing " to the second argument of reduce?), item == current value, index == index. Why do they have array as the 4th arg? The syntax has the array being operated on before the reduce method….[array].reduce(function(1,2,3){ ;},0);

  34. Phat Ky
    September 22, 2017 at 22:31

    Thanks for this.  It was excellent! Question.  When you type "[].filter" , chrome print out the actual content of the function.  All I get is the the function object. How do you enable this feature?

  35. Anita
    September 22, 2017 at 22:31

    awesome. thank you for making this video.

  36. jedi taxus
    September 22, 2017 at 22:31

    quite usful, wonderful!

  37. Nei Rauni Santos
    September 22, 2017 at 22:31

    It would be nice to have a video explaining the ways of using async module from nodejs.

  38. Nei Rauni Santos
    September 22, 2017 at 22:31

    good explanation!

  39. Руслан Войтенко
    September 22, 2017 at 22:31

    Thank you for this video! Only one thing I dont understand, why is there 'Object{male: Array[5],…} but not … Array["James", "Mark"…]? Could you please explain me this thing:)

  40. King Trawal
    September 22, 2017 at 22:31

    what's the difference between _.each and forEach?

  41. gurnzbot
    September 22, 2017 at 22:31

    Awesome vid!
    When you said under your breathe "… what the hell.." at 4:07 I literally loll'd.

    Imma check out more of your vids 😀

Leave A Comment

You must be logged in to post a comment.