I quite simple one:
I have a Javascript object with some properties whose values are arrays, with the following structure:
let obj = {emails: ["[email protected]", "[email protected]"], nickname: ["asdf"],...}
I need to get an array of arrays with only the values, like the following:
let obj2 = [["[email protected]"], ["[email protected]"], ["asdf"],...]
With Object.values(obj), I get [["[email protected]", "[email protected]"], ["asdf"],...], which is not exactly what I am looking for, but it is a good starting point...
Also, I am looking for a one-liner to do it, if possible. Any ideas? Thanks.