turingschool-examples / intermission-assignments

33 stars 218 forks source link

lololodash #40

Closed worace closed 8 years ago

worace commented 9 years ago

Submit the link to your lololodash assignments here.

rasensio1 commented 8 years ago

https://github.com/rasensio1/lololodash

jbrr commented 8 years ago

https://github.com/jbrr/lololodash (WIP)

roseak commented 8 years ago

https://github.com/roseak/lololodash (WIP)

mbburch commented 8 years ago

https://github.com/mbburch/lololodash

plato721 commented 8 years ago

https://github.com/plato721/lololodash

7hoenix commented 8 years ago

https://github.com/jphoenix86/lodash

7hoenix commented 8 years ago

Questions:

What is a callback?

This expression from the lodash documentation feels super weird to me... .reduce(collection, [iteratee=.identity], [accumulator], [thisArg])

Why are individual elements wrapped in [ ]'s (thisArg, accumulator, etc.)? What is _.identity ? Assuming its just the yielded value from the collection... why is it prefaced with the same underscore like a typical lodash function?

MowAlon commented 8 years ago

https://github.com/MowAlon/lololodash

George-Hudson commented 8 years ago

https://github.com/Egogre/lololodash

George-Hudson commented 8 years ago

You probably figured this out by now.

"What is a callback?"

From my understanding, since functions can be traded around like objects, a callback is passing a function to another function and calling it from within that second function.

selfup commented 8 years ago

https://github.com/selfup/lololodash

Used new ES6 features, and tried out some npm styling conventions!

stevekinney commented 8 years ago

@Egogre That's probably one of the best explanations I've seen.