{"size": 299, "ext": "js", "max_stars_repo_path": "lib/helpers/checkRequired.js", "max_stars_repo_name": "melvynkim/controldone", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/helpers/checkRequired.js", "max_issues_repo_name": "melvynkim/controldone", "max_issues_repo_issues_event_min_datetime": "2018-09-05T04:30:05.000Z", "max_issues_repo_issues_event_max_datetime": "2018-09-05T04:31:03.000Z", "max_forks_repo_path": "lib/helpers/checkRequired.js", "max_forks_repo_name": "vedi/controlizer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 21.3571428571, "max_line_length": 57, "alphanum_fraction": 0.6387959866}
'use strict';

function checkRequired(options, requireOptionKeys) {
  for (let i = 0; i < requireOptionKeys.length; i += 1) {
    const key = requireOptionKeys[i];
    if (options[key] === undefined) {
      throw new TypeError(`"${key}" is required`);
    }
  }
}


module.exports = checkRequired;
