Is there a clean way to return a new object that omits certain properties that the original object contains without having to use something like lodash?
const { bar, baz, ...qux } = foo
Now your object qux has all of the properties of foo except for bar and baz.
qux
foo
bar
baz
2.1m questions
2.1m answers
60 comments
57.0k users