{"size": 156, "ext": "js", "max_stars_repo_path": "toy-function/union.js", "max_stars_repo_name": "yaoyao1987/toy-wheel", "max_stars_repo_stars_event_min_datetime": "2021-01-15T11:56:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-15T11:56:58.000Z", "max_issues_repo_path": "toy-function/union.js", "max_issues_repo_name": "yaoyao1987/toy-wheel", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "toy-function/union.js", "max_forks_repo_name": "yaoyao1987/toy-wheel", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.2, "max_line_length": 71, "alphanum_fraction": 0.5256410256}
// 数组去重，求并集
function union(arr1, arr2) {
  return [...new Set([...arr1, ...arr2])]
}
console.log('union([1,2,3],[2,3,4,5])', union([1, 2, 3], [2, 3, 4, 5]))