pbojinov
1/12/2016 - 7:13 PM

ES6 multiple level destructuring

ES6 multiple level destructuring

let error = {
  response: {
    status: 500
  }
};

let {response: {status}} = error;
console.log(status);