JSFiddle - React, Tailwind, and code Playground

by DineshAngappa

JavaScript

var str = "DDINESH VIRTUSA";
var _temp = {};

for(i of str){
  _temp[i] = true;
}

console.log(Object.keys(_temp).join(''));