remove duplicates
let c = ['1','2','1','3', 4, 5, 1]; function uniq(a) { return a.filter((v, i) => a.indexOf(v) === i); } uniq(c); // [ '1', '2', '3', 4, 5, 1 ]