Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to set in js

const strToArr = (str) => str.split("");
const strToSet = (str) => [...new Set(strToArr(str))];
 
PREVIOUS NEXT
Tagged: #convert #string #set #js
ADD COMMENT
Topic
Name
2+2 =