Extract hasDuplicates function
This commit is contained in:
parent
17c8969fd2
commit
b3455bf1cb
2 changed files with 2 additions and 4 deletions
1
src/common/has-duplicates.ts
Normal file
1
src/common/has-duplicates.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export default (array: any[]) => (new Set(array)).size !== array.length;
|
||||
Loading…
Add table
Add a link
Reference in a new issue