Home

WayneCarl Barker's Portfolio/ Blog

Go Back

Making Array only have unique items

WayneCarl

May 7, 2022

Making Array only have 1 of each items

uniqueCategories should be the name of the array

const uniqueCategories = [...new Set(categories)];