unique dates in array javascript code example Example: unique values in array javascript let uniqueItems = [...new Set(items)]