UNPKG

636 BTypeScriptView Raw
1/**
2 * @name equals
3 *
4 * @description
5 * Determines if two objects or two values are equivalent.
6 *
7 * Two objects or values are considered equivalent if at least one of the following is true:
8 *
9 * * Both objects or values pass `===` comparison.
10 * * Both objects or values are of the same type and all of their properties are equal by
11 * comparing them with `equals`.
12 *
13 * @param {*} o1 Object or value to compare.
14 * @param {*} o2 Object or value to compare.
15 * @returns {boolean} True if arguments are equal.
16 */
17export declare function equals(o1: any, o2: any): boolean;
18export declare function isDefined(value: any): boolean;