Creates a new object with specified keys omitted. Based on https://es-toolkit.slash.page/reference/object/omit.html
This function takes an object and an array of keys, and returns a new object that excludes the properties corresponding to the specified keys.
The type of object.
The type of keys in object.
The object to omit keys from.
An array of keys to be omitted from the object.
A new object with the specified keys omitted.
const obj = { a: 1, b: 2, c: 3 };const result = omit(obj, ['b', 'c']);// result will be { a: 1 } Copy
const obj = { a: 1, b: 2, c: 3 };const result = omit(obj, ['b', 'c']);// result will be { a: 1 }
Creates a new object with specified keys omitted. Based on https://es-toolkit.slash.page/reference/object/omit.html
This function takes an object and an array of keys, and returns a new object that excludes the properties corresponding to the specified keys.