Is there a clean way to destructure the same variables from 2 similar objects in the same scope?
function(oldState, newState) {
let {foo, bar} = oldState;
// do stuff //
let {foo, bar} = newState; // illegal double declaration in same scope
{foo, bar} = newState; // illegal, not sure why
let {foo: foo1, bar: bar1} = newState; // legal but ugly
foo = newState.foo; // legal, but requires multiple lines
}