Drawer

Direct Creation of a String Without Duplicates

function removeDupes(str){

var newStr = "";

for (var i = 0; i <str.length; i++) {

if (newStr.includes(str[i]) === false){

newStr += str[i];

}

}

return newStr;

}