Implement omit(obj, keys)
The inverse of pick. Write omit(obj, keys) that returns a new object with every own key except the ones given.
omit({ a: 1, b: 2, c: 3 }, ["b"]); // { a: 1, c: 3 }omit(obj, keys)The inverse of pick. Write omit(obj, keys) that returns a new object with every own key except the ones given.
omit({ a: 1, b: 2, c: 3 }, ["b"]); // { a: 1, c: 3 }Run your code to see results.
Stuck? This challenge exercises: