@newdash/newdash
Version:
javascript/typescript utility library
19 lines (18 loc) • 506 B
TypeScript
import { Path } from "./types";
/**
* The opposite of [[pick]];
*
* this method creates an object composed of the own and inherited enumerable property paths of object that are not omitted.
* @category Object
* @since 5.18.0
* @param object
* @param paths
* @example
* ```js
* const object = { 'a': 1, 'b': '2', 'c': 3 };
* omit(object, ['a', 'c']);
* // => { 'b': '2' }
* ```
*/
export declare function omit<T extends any>(object: T, ...paths: Array<Path>): Partial<T>;
export default omit;