From the website:

Sugar is a Javascript library that extends native objects with helpful methods. It is designed to be intuitive, unobtrusive, and let you do more with less code.

I normally use Lodash ( as my go-to library for useful JavaScript functions, but after discovering SugarJS, I may consider it over Lodash in certain scenarios.

How Do I Use It?

Using SugarJS is super simple.

On the front-end/browser using a CDN...

<script src=""></script>  

In NodeJS... First install the module...

npm install sugar  

Then require it as a dependency in your script...

var sugar = require('sugar');  

Now you can use any of SugarJS methods in your code.

Here are a few of the methods I find useful:

// Format a number
--> 1,234,567,890.12

// Remove falsy values from an array/collection
var my_array = [0,1,2,3,null,5,undefined,7,false,9];  
--> [0,1,2,3,5,7,false,9]
--> [1,2,3,5,7,9]

// Filter an array/collection to values that return true
var my_array = [1,2,3,4,5];  
my_array.filter(function(n) {  
  return n > 2;
--> [3,4,5]

You can see all the available methods at the website.