JSFiddle - React, Tailwind, and code Playground
JavaScript
var str = "DDINESH VIRTUSA";
var _temp = {};
for(i of str){
_temp[i] = true;
}
console.log(Object.keys(_temp).join(''));
var str = "DDINESH VIRTUSA";
var _temp = {};
for(i of str){
_temp[i] = true;
}
console.log(Object.keys(_temp).join(''));