Search
 
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 github.com #
 
PREVIOUS NEXT
Tagged: #string #unique #characters #js
ADD COMMENT
Topic
Name
6+1 =