has-duplicates
A Node.js module that checks an array for duplicate elements or a string for duplicate characters.
Installation
npm install has-duplicates --save
Usage
const hasDuplicates = // Arrays // true // false // Strings // true // false