let obj = { a: 1, b:2, c:3}
I can do
let {a,b,c} = obj
but i want an object with just 'a' and 'b' as key and same value as in obj
do i have a syntax for that one
it is basically filtering out the keys but do we have some succint syntax for this one because I constantly do
let test = {
a: obj.a,
b: obj.b
}