mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
12 lines
363 B
TypeScript
12 lines
363 B
TypeScript
//#region src/object/omit.d.ts
|
|
/**
|
|
* Creates a new object without the specified keys.
|
|
*
|
|
* @example
|
|
* const obj = { a: 1, b: 2, c: 3 };
|
|
* omit(obj, ['b']); // { a: 1, c: 3 }
|
|
*/
|
|
declare function omit<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: readonly K[]): Omit<T, K>;
|
|
//#endregion
|
|
export { omit };
|
|
//# sourceMappingURL=omit.d.ts.map
|