How can I in ES6 , elegantly and with simple syntax, create a new object from the existing object which has only subset of its properties ?
I currently use object destructuring but I don't like the duplicity here.
const obj = {a:1, b:2, c:3, d:4, e:5}
// Create copy which has only a, b and c
const {a, b, c} = obj
const newObj = {a, b, c}
Is there a syntax in which I would need to specify the names of properties only once ?