Jump to content

Underscore.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m copy edit
Updated according to https://underscorejs.org/#changelog
Line 11: Line 11:
| developer = [[Jeremy Ashkenas]]
| developer = [[Jeremy Ashkenas]]
| released = {{Start date and age|2009|10|28}}<ref>[https://github.com/jashkenas/underscore/releases/tag/0.1.0 0.1 release tag]</ref>
| released = {{Start date and age|2009|10|28}}<ref>[https://github.com/jashkenas/underscore/releases/tag/0.1.0 0.1 release tag]</ref>
| latest release version = 1.9.1
| latest release version = 1.10.2
| latest release date = {{Start date and age|2018|05|31}}
| latest release date = {{Start date and age|2020|03|30}}
| latest preview version =
| latest preview version =
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->

Revision as of 09:53, 12 June 2020

Developer(s)Jeremy Ashkenas
Initial releaseOctober 28, 2009; 15 years ago (2009-10-28)[1]
Stable release
1.10.2 / March 30, 2020; 4 years ago (2020-03-30)
Repository
Written inJavaScript
Size6.5 KB production
60 KB development
TypeJavaScript library
LicenseMIT
Websiteunderscorejs.org

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. For example, Underscore.js' _.each() function delegates to the host environment's native forEach implementation when present, or a compatible version when absent. 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.[2]

History

First developed in 2009, Underscore has recently been overtaken by Lodash.[3] Development has since slowed on Underscore.js,[4] and the core developers of underscore have devoted their energy to Lodash instead.

Content

Underscore consists of a little more than 100 functions, which fall under four main categories depending on the datatypes which they manipulate: functions for manipulating arrays, functions for manipulating objects, functions for manipulating both arrays and objects (the name of the category is "Collections") and functions for manipulating other functions. There are also two utility categories : "Utility" and "Chaining".

See also

References

  1. ^ 0.1 release tag
  2. ^ "JavaScript Meetup City", Open, The New York Times, April 4, 2012
  3. ^ Lodash, underscore merge and usage discussion.
  4. ^ Commits to underscore.js from 2015 - 2016