how to get unique record from table1 in javascript 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))];