{"size": 217, "ext": "js", "max_stars_repo_path": "src/utils/mapValueToUndefined.js", "max_stars_repo_name": "masterborn/masterborn-blog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/mapValueToUndefined.js", "max_issues_repo_name": "masterborn/masterborn-blog", "max_issues_repo_issues_event_min_datetime": "2020-07-31T13:48:14.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-09T10:08:04.000Z", "max_forks_repo_path": "src/utils/mapValueToUndefined.js", "max_forks_repo_name": "masterborn/masterborn-blog", "max_forks_repo_forks_event_min_datetime": "2021-02-19T10:51:10.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-19T10:51:10.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 27.125, "max_line_length": 91, "alphanum_fraction": 0.6958525346}
import mapValues from 'lodash/mapValues';

const mapValueToUndefined = (object) => {
  return mapValues(object, value => (value === '' || value === false ? undefined : value));
};

export default mapValueToUndefined;
