Given a random string, tell if there are duplicate characters in it.
Anonymous
let str ="abcdefghaa".split('') //str to array let findDuplicates = (arr) => arr.filter((item, index) => arr.indexOf(item) != index) console.log(findDuplicates(str))
Check out your Company Bowl for anonymous work chats.