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