'use strict'/**
* Returns true if the array has duplicate elements or the string has
* duplicate characters.
* @param {array|string} thing
* @return {bool}
*/module.exports = functionhasDuplicates (thing) {
return (newSet(thing)).size < thing.length
}