safers
Version:
Safely convert to the desired data and error-free refine values.
10 lines (9 loc) • 441 B
TypeScript
/**
* Deeply compares two values, checking equality of nested objects and arrays.
*
* @param a - The first value to compare.
* @param b - The second value to compare.
* @param seen - (Internal) A set to keep track of seen objects during comparison to handle circular references.
* @returns `true` if the values are deeply equal, `false` otherwise.
*/
export declare function deepCompare(a: any, b: any, seen?: Set<unknown>): boolean;