Making Array only have 1 of each items uniqueCategories should be the name of the array const uniqueCategories = [...new Set(categories)];