the areas I got is a string, and then I put them into the array, and at last I do the deduplication operation, and the result is incorrect. How to modify the code to get [4662d4663]
areas += choiceID[0].areas[i].id + ",";
console.log("areas is:", areas) // areas is: 4662,4663,4662,4663,
var arrAreas = []
arrAreas.push(areas)
console.log(arrAreas) // ["4662,4663,4662,4663,"]
var newAreas = [...new Set(arrAreas)]
console.log(newAreas) // ["4662,4663,4662,4663,"]