@technobuddha/library
Version:
A large library of useful functions
11 lines (10 loc) • 480 B
TypeScript
/**
* Compare two object for equality. Testing goes one level deep.
*
* @param objA First object to compare
* @param objB Second object to compare
* @param exclude Array of key names to exclude from the comparison
* @returns true if the two objects have the same members
*/
export declare function shallowEquals(objA: Record<string, unknown> | null | undefined, objB: Record<string, unknown> | null | undefined, exclude?: string[]): boolean;
export default shallowEquals;