Underscore Chain
A Formidable Labs tech talk by  Ryan Roemer

Underscore Chain

Underscore is a library we use everyday.

Today, we'll look at the enormously useful chain method.

Familiar Underscore Methods

We can take all the methods we normally use:

  • filter
  • object
  • keys
  • map
  • first

... and chain them!

Basic Chains

A Little More Complex

Objects

Reductions

Object Traversal

Object Creation

A Practical Example

And Everything Else!

Chain nearly any other methods from Underscore.

1/12

#