Skip to content
Underscore.js
EntityQ4052375· pop 13· linked from 91 articles

Underscore.js

Sign in to save

Also known as Underscore

Underscore.js is a JavaScript library which provides utility functions for common programming tasks. It is comparable to features provided by Prototype.js and the Ruby language, but opts for a functional programming design instead of extending object prototypes. The documentation refers to Underscore.js as "the tie to go along with jQuery's tux, and Backbone.js' suspenders." Underscore.js was created by Jeremy Ashkenas, who is also known for Backbone.js and CoffeeScript.

Key facts

Software.name
Underscore.js
Software.logo
Underscore.png
Software.logo size
250px
Software.developer
Jeremy Ashkenas, Julian Gonggrijp
Software.programming language
JavaScript
Software.size
7.5 KB production68 KB development
Software.genre
JavaScript library
Software.license
MIT

via Wikipedia infobox

Source code

Underscore.js is a utility-belt library for JavaScript that provides support for the usual functional suspects (each, map, reduce, filter...) without extending any core JavaScript objects.

Excerpt from the source-code README · 1,822 chars · not written by Vinony

Wikidata facts

Official website
underscorejs.org
Show 4 more facts
source code repository URL
github.com/jashkenas/underscore
software version identifier
1.13.8
publication date
2009-00-00
Sources (5)

via Wikidata · CC0

~18 min read

Article

17 sections
Contents
  • History
  • Content
  • Overview and examples of functions
  • The <code>_</code> function
  • Wrapper function
  • Partial application placeholder
  • Customization point
  • Namespace handle
  • Chaining
  • Iteratee shorthands
  • Paths
  • Attribute hashes
  • <code>null</code> and <code>undefined</code>
  • Overriding <code>_.iteratee</code>
  • See also
  • References
  • External links

Underscore.js is a JavaScript library which provides utility functions for common programming tasks. It is comparable to features provided by Prototype.js and the Ruby language, but opts for a functional programming design instead of extending object prototypes. The documentation refers to Underscore.js as "the tie to go along with jQuery's tux, and Backbone.js' suspenders." Underscore.js was created by Jeremy Ashkenas, who is also known for Backbone.js and CoffeeScript.

== History == Jeremy Ashkenas created Underscore by the end of 2009 as a spin-off from the DocumentCloud project, together with Backbone.js. It was one of the earliest libraries for JavaScript to provide general functional programming utilities, taking inspiration from Prototype.js, Oliver Steele's Functional JavaScript, and John Resig's Micro-Templating.

Connections

Categories