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
|
Rev | Line | |
---|
[d24f17c] | 1 | import { complement } from 'ramda';
|
---|
| 2 |
|
---|
| 3 | import 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 | */
|
---|
| 23 | const notAllUnique = complement(allUnique);
|
---|
| 24 |
|
---|
| 25 | export default notAllUnique;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.