{"size": 132, "ext": "js", "max_stars_repo_path": "solutions/01 - Sum Array/index.js", "max_stars_repo_name": "hzhu/recursion-joy", "max_stars_repo_stars_event_min_datetime": "2017-01-05T06:02:36.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-13T15:13:53.000Z", "max_issues_repo_path": "solutions/01 - Sum Array/index.js", "max_issues_repo_name": "hzhu/recursion-joy", "max_issues_repo_issues_event_min_datetime": "2020-11-20T14:01:43.000Z", "max_issues_repo_issues_event_max_datetime": "2020-11-20T17:04:45.000Z", "max_forks_repo_path": "solutions/01 - Sum Array/index.js", "max_forks_repo_name": "hzhu/recursion-joy", "max_forks_repo_forks_event_min_datetime": "2017-01-05T18:58:45.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-10T15:19:35.000Z"}
{"max_stars_count": 35, "max_issues_count": 2, "max_forks_count": 12, "avg_line_length": 13.2, "max_line_length": 34, "alphanum_fraction": 0.5984848485}
const sumArray = arr => {
  if (arr.length === 0) {
    return 0
  }

  return arr.pop() + sumArray(arr)
}

export default sumArray
