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