I have an array of programming language like:
const tags = ["js", "ruby", "ios", "python", "go"];
I also have a list of users like:
const user = [
{
"id": "userId_1",
"language": ["ruby", "ios"]
},
...
];
Is there a nice way to populate an array named by the language name with the Ids of users?
Something like:
const ruby = ["userId_1", "userId_3", "userId_8", ...];
id, not variable name.rubygets erased. You must store it in a scoped name.