UNPKG

880 BJavaScriptView Raw
1var _objectIs =
2/*#__PURE__*/
3require("./internal/_objectIs");
4
5var _curry2 =
6/*#__PURE__*/
7require("./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
35var identical =
36/*#__PURE__*/
37_curry2(_objectIs);
38
39module.exports = identical;
\No newline at end of file