{"size": 679, "ext": "js", "max_stars_repo_path": "src/destructuring/object/demo1.js", "max_stars_repo_name": "joyjoe/es6Book", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/destructuring/object/demo1.js", "max_issues_repo_name": "joyjoe/es6Book", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/destructuring/object/demo1.js", "max_forks_repo_name": "joyjoe/es6Book", "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": 16.975, "max_line_length": 61, "alphanum_fraction": 0.4285714286}
{
  let {foo, bar} = {foo: "aaa", bar: "bbb"};
  console.log(foo, bar);
}

{
  let {foo: baz} = {foo: "aaa", bar: "bbb"};
  console.log(baz);
}

{
  let obj = {
    p: [ "hello", {y: "world"}]
  };
  let {p: [x, {y}]} = obj;
  console.log(x, y);
}

{
  let obj = {
    p: [ "hello", {y: "world"}]
  };
  let {p, p: [x, {y}]} = obj;
  console.log(x, y, p);
}

{
  // let s = {
  //   foo: 123,
  //   bar: true
  // };
  let obj = {};
  let arr = [];
  // ({foo: obj["foo"], bar: arr[0]} = s);
  // ({foo: obj.foo, bar: arr[0]} = s);
  ({foo: obj.foo, bar: arr[0]} = {foo: 123, bar: true});
  // let {foo: obj.foo, bar: arr[0]} = {foo: 123, bar: true};
  console.log(obj, arr);
}
