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')
 
PREVIOUS NEXT
Tagged: #string #unique #characters #js
ADD COMMENT
Topic
Name
2+7 =