how to create a unique aray in js code example Example: how to make array uniq let uniqueArray = [...new Set([5,5,2,2,2,4,2])];