What is the ES6 (ES2015) way to create new object from particular keys without repeat the keys twise.
for example:
var orginalObject= {a:1,b:2,c:3,d:4}
// not working
var extractedObj = { orginalObject.a , orginalObject.b} // extractedObj == {a:1, b:2}
I ask that because EC6 as a lot of new shiny ways to copy and create objects