datum-merge
Version:
Simplified diff and merging for deeply nested objects
13 lines • 880 B
TypeScript
export declare function getObjectKeys(obj: any, excludeKeys?: string[], includeKeys?: string[]): string[];
export declare function createValueKeys<T>(keys: string[], value: T): {
[key: string]: T;
};
export declare function deepEquals(lhs: any, rhs: any): boolean;
export declare function deepEqualsPath(lhs: any, rhs: any, atPath: string): boolean;
export declare function deepClone<T = any>(val: T): T;
export declare function toUniqueArray<T>(arr: T[]): T[];
export declare function areArraysEqual<T>(arr1: T[] | undefined, arr2: T[] | undefined): boolean;
export declare function fastGlobMatch(glob: string, text: string): boolean;
export declare function getGlobKeys(obj: any, inclPats?: string[], exclPats?: string[]): string[];
export declare function selectObjKeys<T extends object>(obj: T, includeKeys: string[]): Partial<T>;
//# sourceMappingURL=datum-utils.d.ts.map