Underscore.js
![]() | |
Developer(s) | Jeremy Ashkenas |
---|---|
Initial release | October 28, 2009[1] |
Stable release | 1.10.2
/ March 30, 2020 |
Repository | |
Written in | JavaScript |
Size | 6.5 KB production 60 KB development |
Type | JavaScript library |
License | MIT |
Website | underscorejs |
Underscore.js is a JavaScript library which provides utility functions for common programming tasks.[2] 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.[3]
History
First developed in 2009, Underscore has recently been overtaken by Lodash.[4] Development has since slowed on Underscore.js,[5][needs update] and the core developers of underscore have devoted their energy to Lodash instead.[citation needed]
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".[citation needed]
See also
References
- ^ Release 0.1.0, jashkenas/underscore, GitHub
- ^ "Underscore.js – ein kleines Framework mit Fokus". entwickler.de (in German). 20 June 2018. Retrieved 9 July 2020.
- ^ "JavaScript Meetup City", Open, The New York Times, April 4, 2012
- ^ Lodash, underscore merge and usage discussion, underdash/underdash, GitHub.
- ^ Commits to Underscore.js, 2015–2016, jashkenas/underscore, GitHub.