Remove Duplicate String using javascript

Removes the duplicate from the string using javascript

by DineshAngappa

JavaScript

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

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

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