I can't seem to figure out the next steps. I've managed to remove all the duplicate numbers from the code, but now I need to also eliminate the strings without converting them to numbers. I'm feeling a bit stuck on how to move forward...
let arr = [ 10, 44, 55 ,66 , 77 , 55 , 44 , 3 , 3 , 3 , 4 , 5 , 6 , 54 , "henry", "33", "£", "66"]
let uniqueValues = {};
function getUniqueValues(arr){
return arr.filter(function(value, index){
return arr.indexOf(value) >= index;
});
};
getUniqueValues(arr)