{"size": 559, "ext": "js", "max_stars_repo_path": "demo-js/curry.js", "max_stars_repo_name": "Liugq5713/demo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "demo-js/curry.js", "max_issues_repo_name": "Liugq5713/demo", "max_issues_repo_issues_event_min_datetime": "2021-05-08T08:24:28.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T08:24:28.000Z", "max_forks_repo_path": "demo-js/curry.js", "max_forks_repo_name": "Liugq5713/demo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 23.2916666667, "max_line_length": 61, "alphanum_fraction": 0.6118067979}
function add_base(...rest) {
  console.log({ rest })
  return rest.reduce((prev, current) => {
    return prev + current
  }, 0)
}

var curry = function (fn) {
  // 因为arguments是个类数组
  var args = [].slice.call(arguments, 1);
  return function () {
    var newArgs = args.concat.call([].slice.call(arguments));
    return fn.apply(this, newArgs);
  };
};

var person = [{ name: 'kevin' }, { name: 'daisy' }]
var prop = curry(function (key, obj) {
  console.log({ key, obj })
  return obj[key]
});
var name = person.map(prop('name'))
console.log({ prop, name })
