open_in_new
content_copy
const unique = [...new Set(data.map(item => item.group))]; // [ 'A', 'B']