// Now your object qux has all of the properties of foo except for bar and baz. const { bar, baz, ...qux } = foo