{"size": 341, "ext": "js", "max_stars_repo_path": "app/helpers/validation/viz/field-validation/criteria.js", "max_stars_repo_name": "knightjdr/prohits-viz-ap", "max_stars_repo_stars_event_min_datetime": "2019-02-18T01:52:02.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-18T01:52:02.000Z", "max_issues_repo_path": "app/helpers/validation/viz/field-validation/criteria.js", "max_issues_repo_name": "knightjdr/prohits-viz-ap", "max_issues_repo_issues_event_min_datetime": "2020-12-14T19:49:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-21T13:57:26.000Z", "max_forks_repo_path": "app/helpers/validation/viz/field-validation/criteria.js", "max_forks_repo_name": "knightjdr/prohits-viz-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 24.3571428571, "max_line_length": 53, "alphanum_fraction": 0.6246334311}
const criteria = {
  isBoolean: (value, defaultValue) => (
    typeof value === 'boolean' ? value : defaultValue
  ),
  isNumber: (value, defaultValue) => (
    typeof value === 'number' ? value : defaultValue
  ),
  isString: (value, defaultValue) => (
    typeof value === 'string' ? value : defaultValue
  ),
};

export default criteria;
