Open In App

Underscore.js Introduction

Underscore.js is a lightweight JavaScript library and not a complete framework that was written by Jeremy Ashkenas that provides utility functions for a variety of use cases in our day to day common programming tasks. 

With just under six kilobytes in size, this library basically provides us with a whole bunch of useful JavaScript functions for making our life easier, there are literally hundreds of different functions available that support both our workaday functional helpers such as the map and filter functions, as well as more specialized ones such as JavaScript templating, function binding, deep equality testing, creating quick indexes, and many more. 



Underscore functions basically falls under four major categories which are functions that can be used for manipulating arrays, functions that can be used for manipulating objects, functions that can be used for manipulating both arrays as well as objects and functions that can be used for manipulating other functions itself. 

Features of Underscore: 
 



Kinds of Data Operation: 
 

Installation: 
 

npm install underscore
meteor add underscore
require(["underscore"], ...
bower install underscore
#include "underscore.js"

 

Article Tags :