filter array of objects by unique property code example Example: javascript get unique values from key const unique = [...new Set(array.map(item => item.age))];