Обложка канала

FrontEndDev

Интересные статьи для web-разработчиков.

FrontEndDev

3 года назад
Открыть в
Проверяем, что все символы в строке уникальные 3 способа проверки: ▫️String.prototype.indexOf ▫️Array.prototype.filter ▫️Set gomakethings.com/how-to-…vascript
How to test if all characters in a string a unique with vanilla JavaScript

Today, we’re going to do another coding challenge. For this one, we’re going to build a function (or maybe a few of them) that we can use to check if all of the characters in a string are unique. You can go off and try to complete it on your own, then come back and see how I approached it. Or if you’d prefer, you can code along with me.

Gomakethings