ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
33 lines (32 loc) • 894 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Returns `true` if its arguments are not equivalent, `false` otherwise. Handles
* cyclical data structures.
*
* Dispatches symmetrically to the `equals` methods of both arguments, if
* present.
*
* @func notEqual
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.29.0|v2.29.0}
* @category Relation
* @sig a -> b -> Boolean
* @param {*} a
* @param {*} b
* @return {Boolean}
* @see {@link https://ramdajs.com/docs/#equals|equals}
* @example
*
* RA.notEqual(1, 1); //=> false
* RA.notEqual(1, '1'); //=> true
* RA.notEqual([1, 2, 3], [1, 2, 3]); //=> false
*
* const a = {}; a.v = a;
* const b = {}; b.v = b;
* RA.notEqual(a, b); //=> false
*/
var notEqual = (0, _ramda.complement)(_ramda.equals);
var _default = exports["default"] = notEqual;
;