Remove empty properties falsy values from object with Underscore >= 1.7.0 or Lodash
var cleanedObj;
// Underscore >= 1.7.0
cleanedObj = _.pick(sourceObj, _.identity);
// Lodash >= 0.1.0
cleanedObj = _.pick(sourceObj, _.identity);
// Lodash >= 4.0.0
cleanedObj = _.pickBy(sourceObj);