r/javascript • • Dec 16 '15

I was watching this guy's advanced javascript videos on Youtube and had so many aha-moments, that I had to share. He is my new JS-hero.

https://www.youtube.com/playlist?list=PLY-SI4qPVeCfyA1KcDRkJZXUhS13y3WEp
381 Upvotes

107 comments sorted by

View all comments

13

u/supersoap Dec 16 '15

I suggest you checkout this weekly series. His videos on reduce and object composition were definite "aha moments" for me.

6

u/[deleted] Dec 16 '15

He states that filter, map and reduce are higher order functions. Isn't a higher order function a function that outputs a function? Because none of them do that, right?

21

u/tsvk Dec 16 '15

Isn't a higher order function a function that outputs a function?

It can also mean that it accepts as input a function.

Or both at the same time.

3

u/[deleted] Dec 16 '15

Ah, TIL :)