talira

Underscore.js

JavaScript's functional programming utility belt

open sourceMITfree

Underscore.js is a utility-belt library for JavaScript that provides the usual functional helpers (each, map, reduce, filter and the like) without extending any of JavaScript's built-in objects. It's an open source component of DocumentCloud, installed from npm as underscore; its site, underscorejs.org, has the documentation, tests and prebuilt downloads.

Problems it solves

  • use map, filter and reduce helpers on objects and arrays in older JavaScript code
  • add functional programming helpers to a JavaScript project without patching built-ins
  • a small utility library for collections in the browser

Features

  • functional helpers such as each, map, reduce and filter
  • doesn't extend JavaScript's built-in objects
  • prebuilt downloads alongside the npm package

Alternatives

The same job

These do what Underscore.js does.

  1. Lodash A modern JavaScript utility library delivering modularity, performance & extras.

Compare Underscore.js with the top 3