标签: javascript object ecmascript-6 destructuring
let x = { a: 10, b: 20, c: 30 };
有没有办法只将x的a,b键作为另一个对象?
let y = x; //someway here through Object destructing console.log(y); //{a:10,b:20}