Remove Duplicate String using javascript
Removes the duplicate from the string using javascript
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(''));