I am using this code to read all the values from each object with the key "category":
const listChapter = datas.map((data) => console.log(data.category))
datas is an array of Objects, and there are 45 objects.
The problem is that when I console.log that, i have many duplicates values, you can see that below:
I want to have one unique value of each category. How can I do that?