code: function compact(x) {
    function shouldDrop(key) {
      return typeof(x[key]) === 'undefined' || x[key] === null;
    }
    return _.omit(x, _.filter(_.keys(x), shouldDrop))
  }
docs: Return a copy of object x with null or undefined "own" properties removed.