The Lodash invoke()
function does more than simply iterate over a given collection, calling the given method on each object. It actually stores the result of each method invocation, effectively building a new collection. This is a powerful idea, especially when it comes to chaining Lodash functions together.
Showing posts with label compact. Show all posts
Showing posts with label compact. Show all posts
Friday, June 27, 2014
Building Collections Using Lodash Invoke
Subscribe to:
Posts
(
Atom
)