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