function(e){let t={},r=[];return e.forEach((e,i,o)=>{t[`${typeof e+e}`]||(t[`${typeof e+e}`]=!0,r.push(e))}),r}

result

[1,"1",2,"3",3,5,"a"]
e=>Array.from(new Set(e))

result

[1,"1",2,"3",3,5,"a"]