Book Image

Learning Underscore.js

By : Alexandru Vasile Pop
Book Image

Learning Underscore.js

By: Alexandru Vasile Pop

Overview of this book

Table of Contents (14 chapters)
Learning Underscore.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 built-in data types.

The source code for the examples from this chapter is hosted online at https://github.com/popalexandruvasile/underscorejs-examples/tree/master/collections, and you can execute the examples using the Cloud9 IDE at the address https...