action-debian-package/node_modules/ramda/src/equals.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

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;