corde
Version:
A simple library for Discord bot tests
19 lines (18 loc) • 759 B
TypeScript
/**
* Checks if two objects are equals by no strict way.
* Wich means, do not validate if both objects are equals by reference, only by values.
*
* Similar with [assert.deepEqual(actual, expected[, message])](https://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message)
* @param obj1 First object to be verified.
* @param obj2 Second object to be verified
*
* @returns Returns if both objects have the same values. Returns true in case of both
* parameters be **undefined** or **null**.
*
* Treat **null** and **undefined** of the same way, Wich means, if a parameter be null and the other
* undefined, this function will return true.
*
* @internal
*
*/
export declare function deepEqual(obj1: any, obj2: any): boolean;