underscore.js

Getting started with underscore.js

Remarks#

This section provides an overview of what underscore.js is, and why a developer might want to use it.

It should also mention any large subjects within underscore.js, and link out to the related topics. Since the Documentation for underscore.js is new, you may need to create initial versions of those related topics.

Installation or Setup

Underscore is an open source functional programming utility library for JavaScript. Underscore provides many useful functions for working with arrays or collections of JavaScript objects, including filtering, sorting and querying.

Node.js

Make sure you have node and npm installed then type the following command

npm install underscore

Bower

Make sure you have node, npm and bower installed then type the following command

bower install underscore

NuGet

Install-Package underscore.js

Browser

Download the Development version or the Production version and link the script inside you HTML file using the script element.

<script src="js/underscore/underscore.js"></script>

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow