how to return unique types from a set in js code example Example: array with unique values javascript let uniqueItems = [...new Set(items)]