Reduce: Mother of all Javascript Array Methods? (Part 5)

preview_player
Показать описание
Reduce is considered the hardest of the Array functions, is it? Let's try demystifying this super powerful Array method and give you the power to create anything you want from an arry.

👉 What's my theme? Night Wolf [black]
👉 What's that font? Operator Mono

00:00 Introduction
00:35 Reducing to a single value
06:50 Reducing to an array
11:55 Reducing to an object
15:55 Reduce can make all the other array methods
18:40 Entries, keys and values
21:00 Reduce for sequential async
22:51 Review
23:25 Outroduction

Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.

#javascript #arrays
Рекомендации по теме
Комментарии
Автор

Can't believe!! You literally have summed up almost everything Js in one video.

muhammadyousufhere
Автор

One of your typescript challenges where to do everything other methods do with reduce method, I was blown away when I learned it

dgcp
Автор

I have no doubt this is the most underestimated channel on YouTube. You are doing an amazing job and in every video I'm learning something new. Thank you very much!

lazarstanev
Автор

Reduce is my favourite method for arrays. So powerful especially when initializing an object but at same time looping through the array. Love the series!

zezpcpu
Автор

Reduce in JavaScript is actually really easy because the parameters arent typed. You can just throw anything in for the identity and then change it however you want on each iteration.
I like using reduce to convert and array of objects to an object with specific keys.

theyreMineralsMarie
Автор

As I understand it and experienced while coding, .reduce() starts at index 1 when you use it to create a single string from an array of strings. Checking if index > 0 at min 06:01 doesn't really change anything because there is index 0. You might as well left is that way: => str + ", " + name
Correct me, if I got it wrong.

But thank you nevertheless for all you free and valuable videos. You and Dave Gray are my top resources when it comes to Java Script or React and both of you deserve so much more likes and followers!

hooked-to-coding
Автор

Amazing Jack, Keep it up you are definitely the leader of JS/TS/React/Frontend community.

AbdelhameedG
Автор

100% coverage of reduce functionality.
Thanks a lot 👍

basharkhadra
Автор

Come on, Jack! You are a blessing for all programmers. Thank you so much, I think I'm about to finish all of your videos.

LuisFelipe-tdqk
Автор

I wasn't confident about reduce method till now.. thanks much for the video..

mdrahiem_dev
Автор

Wow that async reduce hack sure is smart!! Great video as always!!

johannsebastianbach
Автор

Hay Jack, can you tell me how are your printing array values just before it?

asadsiddique
Автор

absolutely complete stuff !! keep going !

ghtcbfh
Автор

Great comparison examples! "Mother" will be proud! :D

marcelsdev
Автор

Great content and explanation sir as per usual

shinmessiah
Автор

No doubt reduce is mother of all but it is also mother of all complex looking code too! :)

vigyanhoon
Автор

Perfect video for Reduce...the mother of all functions 😅

mani
Автор

I love your teaching even more than your music. Thanks Macklemore!!

MarkDekkersLife
Автор

This reduces JavaScript in a one shoot !

From where you’ve got resources to make this crazy content 😀?

maenam
Автор

The problem with reduce is that unless the function inside is extremely simple, readibility is sacrificed.
You are better off using for...of or for...in

GurbyTheGreat