Lodash library usage examples

Using Lodash library makes you not reinvent weel when writing JS code. The good definition is:”Applicative programming is the pattern of defining a function that takes a function and then invokes that function for each element in a collection/list”.

A very neat example you can find at:


Also, it has very nice documentation:


Here's an example:

var users = [
  { 'user': 'barney', 'age': 36 },
  { 'user': 'fred',   'age': 40 }
_.pluck(users, 'user');
// → ['barney', 'fred']