Omit properties from an object.
The object to omit properties from.
The property or properties to omit.
The object with the specified properties omitted.
const data = { name: "John", age: 30, city: "New York",};omit(data, "age"); // { name: "John", city: "New York" }omit(data, ["age", "city"]); // { name: "John" } Copy
const data = { name: "John", age: 30, city: "New York",};omit(data, "age"); // { name: "John", city: "New York" }omit(data, ["age", "city"]); // { name: "John" }
Omit properties from an object.