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
1.4m articles
1.4m replys
5 comments
57.0k users