node package manager

emptyObject

A simple micro lib to add an isEmpty method to the object prototype. _ too heavy weight? Wanna save yourself a coffeescript one-liner? Just use this!

emptyObject

A simple empty object microlib for Node (for those times when _ is too heavyweight)

Usage (in Javascript)

emp = require('emptyObject')
 
if({}.isEmpty()){
        console.log("Yep, it worked");
}
else
{
        console.log("It didn't work!");
}