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

Using the lodash library

The lodash library (https://lodash.com) was created as a fork of Underscore, with a focus on better performance, improved consistency across browsers, and enhanced code readability. Currently at version 3, it offers a thorough test suite, excellent documentation, and an extensively customizable build utility. In its previous versions, it even offered an Underscore compatible file so that you can use lodash as a drop-in replacement for Underscore (especially, useful for projects using Backbone.js).

Initially, the main difference between lodash and Underscore was that lodash was not relying on any native JavaScript functions to implement functions such as _.map(), _reduce, and _.forEach(). As discussed in the Underscore and ...

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