Проверяем, что все символы в строке уникальные
3 способа проверки:
▫️String.prototype.indexOf
▫️Array.prototype.filter
▫️Set
https://gomakethings.com/how-to-test-if-all-characters-in-a-string-a-unique-with-vanilla-javascript/
Post #8367
6.88K