DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
duplicate characters in a string javascript
const text = 'abcda'.split('') text.some( (v, i, a) => { return a.lastIndexOf(v) !== i }) // true
PREVIOUS
NEXT
Tagged:
#duplicate
#characters
#string
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit