lib/utils.js
function remove_null_undefined(object) {
  Object.keys(object).forEach(key => {
    if (object[key] === null || typeof object[key] === "undefined") {
      delete object[key]
    }
  })

  return object
}
function remove_null_undefined(object) {
  Object.keys(object).forEach(key => {
    if (object[key] === null || typeof object[key] === "undefined") {
      delete object[key]
    }
  })

  return object
}
function remove_null_undefined ( object ) { Object . keys ( object ) . forEach ( key => { if ( object [ key ] === null || typeof object [ key ] === "undefined" ) { delete object [ key ] } } ) return object }
Remove any null or undefined values from
an object and return it.
@param  {Object} object to remove empties from.
@return {Object} object without empties.
Remove any null or undefined values from an object and return it .