find unique with particular key in array code example Example: javascript get unique values from key const unique = [...new Set(array.map(item => item.age))];