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 ujjaini.wordpress.com #
 
PREVIOUS NEXT
Tagged: #string #unique #characters #js
ADD COMMENT
Topic
Name
2+4 =