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