source: node_modules/ramda-adjunct/lib/notEqual.js

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: 904 bytes
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Returns `true` if its arguments are not equivalent, `false` otherwise. Handles
8 * cyclical data structures.
9 *
10 * Dispatches symmetrically to the `equals` methods of both arguments, if
11 * present.
12 *
13 * @func notEqual
14 * @memberOf RA
15 * @since {@link https://char0n.github.io/ramda-adjunct/2.29.0|v2.29.0}
16 * @category Relation
17 * @sig a -> b -> Boolean
18 * @param {*} a
19 * @param {*} b
20 * @return {Boolean}
21 * @see {@link https://ramdajs.com/docs/#equals|equals}
22 * @example
23 *
24 * RA.notEqual(1, 1); //=> false
25 * RA.notEqual(1, '1'); //=> true
26 * RA.notEqual([1, 2, 3], [1, 2, 3]); //=> false
27 *
28 * const a = {}; a.v = a;
29 * const b = {}; b.v = b;
30 * RA.notEqual(a, b); //=> false
31 */
32var notEqual = (0, _ramda.complement)(_ramda.equals);
33var _default = notEqual;
34exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.