main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
794 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import _curry2 from "./internal/_curry2.js";
|
---|
| 2 | import _equals from "./internal/_equals.js";
|
---|
| 3 | /**
|
---|
| 4 | * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
---|
| 5 | * cyclical data structures.
|
---|
| 6 | *
|
---|
| 7 | * Dispatches symmetrically to the `equals` methods of both arguments, if
|
---|
| 8 | * present.
|
---|
| 9 | *
|
---|
| 10 | * @func
|
---|
| 11 | * @memberOf R
|
---|
| 12 | * @since v0.15.0
|
---|
| 13 | * @category Relation
|
---|
| 14 | * @sig a -> b -> Boolean
|
---|
| 15 | * @param {*} a
|
---|
| 16 | * @param {*} b
|
---|
| 17 | * @return {Boolean}
|
---|
| 18 | * @example
|
---|
| 19 | *
|
---|
| 20 | * R.equals(1, 1); //=> true
|
---|
| 21 | * R.equals(1, '1'); //=> false
|
---|
| 22 | * R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
---|
| 23 | *
|
---|
| 24 | * const a = {}; a.v = a;
|
---|
| 25 | * const b = {}; b.v = b;
|
---|
| 26 | * R.equals(a, b); //=> true
|
---|
| 27 | */
|
---|
| 28 |
|
---|
| 29 | var equals =
|
---|
| 30 | /*#__PURE__*/
|
---|
| 31 | _curry2(function equals(a, b) {
|
---|
| 32 | return _equals(a, b, [], []);
|
---|
| 33 | });
|
---|
| 34 |
|
---|
| 35 | export default equals; |
---|
Note:
See
TracBrowser
for help on using the repository browser.