DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to make a string with unique characters js
const uniq = (str) => { console.log(([...new Set(str)]).join('')) } uniq('hello')
Source by ujjaini.wordpress.com #
PREVIOUS
NEXT
Tagged:
#string
#unique
#characters
#js
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit