{"size": 369, "ext": "js", "max_stars_repo_path": "fields/utils/evalDependsOn.js", "max_stars_repo_name": "babygoat/keystone", "max_stars_repo_stars_event_min_datetime": "2016-08-09T12:49:32.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-26T16:06:49.000Z", "max_issues_repo_path": "fields/utils/evalDependsOn.js", "max_issues_repo_name": "babygoat/keystone", "max_issues_repo_issues_event_min_datetime": "2016-03-16T02:27:04.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-24T06:08:04.000Z", "max_forks_repo_path": "fields/utils/evalDependsOn.js", "max_forks_repo_name": "babygoat/keystone", "max_forks_repo_forks_event_min_datetime": "2016-02-23T05:58:36.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-15T06:47:52.000Z"}
{"max_stars_count": 5, "max_issues_count": 72, "max_forks_count": 11, "avg_line_length": 23.0625, "max_line_length": 67, "alphanum_fraction": 0.6937669377}
var ExMatch = require('expression-match');

function isObject(arg) {
  return Object.prototype.toString.call(arg) === '[object Object]';
};

module.exports = function evalDependsOn(dependsOn, values) {
  if (!isObject(dependsOn) || !Object.keys(dependsOn).length) {
    return true;
  }

  var Match = new ExMatch(dependsOn, values, false);
  return Match.match();

};
