Skip to content

omit

omit(target, keys)

Creates a new object excluding the properties specified in the keys iterable.

ts
omit({ a: 1, b: 2, c: 3 }, ["a", "c"]); // { b: 2 }
ts
pipe({ a: 1, b: 2, c: 3 }, omit(["a", "c"])); // { b: 2 }