ts-prime
Version:
A utility library for JavaScript and Typescript.
31 lines • 957 B
TypeScript
/**
* Returns true if its arguments are equivalent, false otherwise.
* @warning Doesn't handle cyclical data structures.
* @param a the first object to compare
* @param b the second object to compare
* @signature
* P.equals(a, b)
* @example
* P.equals(1, 1) //=> true
* P.equals(1, '1') //=> false
* P.equals([1, 2, 3], [1, 2, 3]) //=> true
* @data_first
* @category Object
*/
export declare function equals(a: any, b: any): boolean;
/**
* Returns true if its arguments are equivalent, false otherwise.
* @warning Doesn't handle cyclical data structures.
* @param a the first object to compare
* @param b the second object to compare
* @signature
* P.equals(b)(a)
* @example
* P.equals(1)(1) //=> true
* P.equals('1')(1) //=> false
* P.equals([1, 2, 3])([1, 2, 3]) //=> true
* @data_last
* @category Object
*/
export declare function equals(a: any): (b: any) => boolean;
//# sourceMappingURL=equals.d.ts.map