apphouse
Version:
Component library for React that uses observable state management and theme-able components.
9 lines (8 loc) • 332 B
TypeScript
/**
* Recurse through an object and omit all keys specified in keysToOmit
* @param obj object to omit keys from
* @param keysToOmit the keys to omit
* @returns a new object with all keys from the original object
* except the ones specified in keysToOmit
*/
export declare function omitAll<T>(obj: T, keysToOmit: string[]): T;