41 lines
826 B
JavaScript
41 lines
826 B
JavaScript
var _curry2 =
|
|
/*#__PURE__*/
|
|
require("./internal/_curry2");
|
|
|
|
var _equals =
|
|
/*#__PURE__*/
|
|
require("./internal/_equals");
|
|
/**
|
|
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
|
* cyclical data structures.
|
|
*
|
|
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
* present.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.15.0
|
|
* @category Relation
|
|
* @sig a -> b -> Boolean
|
|
* @param {*} a
|
|
* @param {*} b
|
|
* @return {Boolean}
|
|
* @example
|
|
*
|
|
* R.equals(1, 1); //=> true
|
|
* R.equals(1, '1'); //=> false
|
|
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
*
|
|
* const a = {}; a.v = a;
|
|
* const b = {}; b.v = b;
|
|
* R.equals(a, b); //=> true
|
|
*/
|
|
|
|
|
|
var equals =
|
|
/*#__PURE__*/
|
|
_curry2(function equals(a, b) {
|
|
return _equals(a, b, [], []);
|
|
});
|
|
|
|
module.exports = equals; |