let arr = [1, 2, 3, 10, 4, 5, 1, 3, 5];
let stateNumArr = arr.filter((item, index, array) => {
return array.indexOf(item) === index;
});
console.log(stateNumArr);
2023-08-15 22:34:40
let arr = [1, 2, 3, 10, 4, 5, 1, 3, 5];
let stateNumArr = arr.filter((item, index, array) => {
return array.indexOf(item) === index;
});
console.log(stateNumArr);