@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
10 lines • 391 B
TypeScript
/**
* Returns a copy of an object without the specified keys.
* @template T
* @template K
* @param {T} obj - The source object.
* @param {K[]} keys - The keys to omit.
* @returns {Omit<T, K>} A new object without the omitted keys.
*/
export default function omit<T extends Record<PropertyKey, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
//# sourceMappingURL=omit.d.ts.map