I have this list of json elements (it comes from a extern service), with a pair of group and a name:
const list_lookup = [
{ "rowData": ["aabb" , "gabriel"]},
{ "rowData": ["bbcc" , "jake"]},
{ "rowData": ["ccdd" , "john"]},
{ "rowData": ["aabb" , "chris"]}
];
I need to take the last appearance of the group that the user typed and store your correspondent username. Like in this case if the users input is "aabb"
I need to take the last array, who is the last time that the "aabb" group appears. I tried many ways but i just dont know how to do this.