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>