How to omit specific properties from an object in JavaScript January 4, 2023 by Tarik const { bar, baz, ...qux } = foo Now your object qux has all of the properties of foo except for bar and baz.