O'Reilly logo

Learning Underscore.js by Alex Pop

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Using Underscore.js with Collections

The previous chapter introduced Underscore and presented some of the principles and patterns that will help with using it more efficiently. The chapter concluded by setting up the development workflow used for the book examples.

In this chapter, we will explore Underscore functionality for collections using more in-depth examples. Some of the more advanced concepts related to Underscore functions such as scope resolution and execution context will be explained. The topics of the chapter are as follows:

  • Key Underscore functions revisited
  • Searching and filtering
  • Aggregations and transformations

This chapter assumes that you are familiar with JavaScript fundamentals such as prototypical inheritance and the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required