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