1 | var _objectIs =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_objectIs");
|
4 |
|
5 | var _curry2 =
|
6 | /*#__PURE__*/
|
7 | require("./internal/_curry2");
|
8 | /**
|
9 | * Returns true if its arguments are identical, false otherwise. Values are
|
10 | * identical if they reference the same memory. `NaN` is identical to `NaN`;
|
11 | * `0` and `-0` are not identical.
|
12 | *
|
13 | * Note this is merely a curried version of ES6 `Object.is`.
|
14 | *
|
15 | * @func
|
16 | * @memberOf R
|
17 | * @since v0.15.0
|
18 | * @category Relation
|
19 | * @sig a -> a -> Boolean
|
20 | * @param {*} a
|
21 | * @param {*} b
|
22 | * @return {Boolean}
|
23 | * @example
|
24 | *
|
25 | * const o = {};
|
26 | * R.identical(o, o); //=> true
|
27 | * R.identical(1, 1); //=> true
|
28 | * R.identical(1, '1'); //=> false
|
29 | * R.identical([], []); //=> false
|
30 | * R.identical(0, -0); //=> false
|
31 | * R.identical(NaN, NaN); //=> true
|
32 | */
|
33 |
|
34 |
|
35 | var identical =
|
36 | /*#__PURE__*/
|
37 | _curry2(_objectIs);
|
38 |
|
39 | module.exports = identical; |
\ | No newline at end of file |