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