{"size": 248, "ext": "js", "max_stars_repo_path": "src/codegen/builtins/int.js", "max_stars_repo_name": "jimf/kringle", "max_stars_repo_stars_event_min_datetime": "2018-10-31T16:52:13.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-11T01:23:32.000Z", "max_issues_repo_path": "src/codegen/builtins/int.js", "max_issues_repo_name": "jimf/kringle", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/codegen/builtins/int.js", "max_forks_repo_name": "jimf/kringle", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.6666666667, "max_line_length": 63, "alphanum_fraction": 0.5887096774}
exports.requires = []

exports.definition = `
let int = x => {
  if (typeof x === 'number') { return x }
  const result = parseInt(x, 10)
  if (isNaN(result)) {
    throw new Error('Unable to convert "' + x + '" to Integer')
  }
  return result
}`
