source: node_modules/ramda-adjunct/src/notAllUnique.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: 712 bytes
RevLine 
[d24f17c]1import { complement } from 'ramda';
2
3import allUnique from './allUnique';
4
5/**
6 * Returns true if at least one item of the list is repeated. `R.equals` is used to determine equality.
7 *
8 * @func notAllUnique
9 * @memberOf RA
10 * @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
11 * @category List
12 * @sig [a] -> Boolean
13 * @param {Array} list The list of values
14 * @return {boolean}
15 * @see {@link RA.allUnique|allUnique}, {@link https://ramdajs.com/docs/#equals|equals}
16 * @example
17 *
18 * RA.notAllUnique([ 1, 1, 2, 3 ]); //=> true
19 * RA.notAllUnique([ 1, 2, 3, 4 ]); //=> false
20 * RA.notAllUnique([]); //=> false
21 *
22 */
23const notAllUnique = complement(allUnique);
24
25export default notAllUnique;
Note: See TracBrowser for help on using the repository browser.