Are there any new and super powerful ES JavaScript features that can accomplish this task? (I could come up with a function to do it, but I'm curious if there's a cutting-edge ES202* technique available)
let arr = [
['cb', ''],
['cb', '34'],
['cb', '35'],
['rb', '1']
];
/*
Desired Outcome:
[['cb', ['34', '35']], ['rb', '1']]
*/
console.log([...new Set(arr.flat(1))])