Closed worace closed 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?
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.
https://github.com/selfup/lololodash
Used new ES6 features, and tried out some npm styling conventions!
@Egogre That's probably one of the best explanations I've seen.
Submit the link to your lololodash assignments here.