function removeBlankAttributes(obj) {
  return foldl(function(results, val, key) {
    if (val !== null && val !== undefined) results[key] = val;
    return results;
  }, {}, obj);
}
Filters null/undefined values from an object, returning a new object.

@api private
@param {Object} obj
@return {Object}