Is there a more concise way of rewriting this code:
const { foo, bar } = oldObj;
const newObj = { foo, bar };
as one-line?
Is there a more concise way of rewriting this code:
const { foo, bar } = oldObj;
const newObj = { foo, bar };
as one-line?