source: node_modules/ramda-adjunct/src/notEqual.js@ d24f17c

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