lib/index.js
function cleanObject(obj) {
  if (obj instanceof Object) {
    Object.keys(obj).forEach((key) => (obj[key] == null) && delete obj[key]);
  }
  return obj;
}
function cleanObject(obj) {
  if (obj instanceof Object) {
    Object.keys(obj).forEach((key) => (obj[key] == null) && delete obj[key]);
  }
  return obj;
}
function cleanObject ( obj ) { if ( obj instanceof Object ) { Object . keys ( obj ) . forEach ( ( key ) => ( obj [ key ] == null ) && delete obj [ key ] ) ; } return obj ; }
Removes any properties from an object that resolve to null.
@param {Object} obj
Removes any properties from an object that resolve to null .