{"size": 420, "ext": "js", "max_stars_repo_path": "lib/array-helpers.js", "max_stars_repo_name": "luobotang/old-js-dependency-analysis", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/array-helpers.js", "max_issues_repo_name": "luobotang/old-js-dependency-analysis", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/array-helpers.js", "max_forks_repo_name": "luobotang/old-js-dependency-analysis", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0, "max_line_length": 46, "alphanum_fraction": 0.6523809524}
exports.unionByReduce = function (ret, val) {
  if (ret.indexOf(val) === -1) {
    ret.push(val)
  }
  return ret
}

exports.diff = function (arr1, arr2) {
  var items_only_in_1
  var items_only_in_2

  items_only_in_1 = arr1.filter(function (i) {
    return arr2.indexOf(i) === -1
  })

  items_only_in_2 = arr2.filter(function (i) {
    return arr1.indexOf(i) === -1
  })

  return [items_only_in_1, items_only_in_2]
}