UNPKG

@mfederczuk/deeptools

Version:

A set of utility functions that recursively operate on objects

19 lines (18 loc) 629 B
export type DeepEqualsOptions = { /** * Ignores the order that the properties are defined. * * Default is `true`. */ ignoreOrder?: boolean; }; /** * Checks if **obj1** and **obj2** are equal by recursing through their properties. * * @param obj1 The first object to compare. * @param obj2 The second object to compare. * @param options Options object to change the behavior of `deepEquals`. * * @returns `true` if **obj1** and **obj2** are deeply equal, `false` if otherwise. */ export declare function deepEquals(obj1: unknown, obj2: unknown, options?: Readonly<DeepEqualsOptions>): boolean;