{"size": 294, "ext": "js", "max_stars_repo_path": "libraries/d3/api/1. arrays/3. transformations/3. pairs.js", "max_stars_repo_name": "banminkyoz/learn", "max_stars_repo_stars_event_min_datetime": "2022-01-18T00:57:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T02:41:54.000Z", "max_issues_repo_path": "libraries/d3/api/1. arrays/3. transformations/3. pairs.js", "max_issues_repo_name": "kyoz/learn", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libraries/d3/api/1. arrays/3. transformations/3. pairs.js", "max_forks_repo_name": "kyoz/learn", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.375, "max_line_length": 47, "alphanum_fraction": 0.3945578231}
const d3 = require('d3');

console.log(d3.pairs([1]));      // []
console.log(d3.pairs([1,2]));    // [ [1, 2] ]

console.log(
  d3.pairs([1,2,3,4,5])
  // [ [ 1, 2 ], [ 2, 3 ], [ 3, 4 ], [ 4, 5 ] ]
);

console.log(
  d3.pairs([1,2,3,4], (a, b) => b + '-' + a)
  // [ '2-1', '3-2', '4-3' ]
);

