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 x = {obj1: 1, obj2: 3, obj3:26}; const {obj1,obj2, ...rest} = x; console.log(rest)