I need to find the third element of a dictionary array knowing the first two values. For example:
var dict = [{name: "A", game: "X", number: 5},
{name: "B", game: "X", number: 3},
{name: "A", game: "Y", number: 1},
{name: "C", game: "Z", number: 2}]
So if I find name: "A" and game: "X" this will return number: 5 or just 5. And if it is posible, getting the index in the array of that element, for example in that case the index would be 0 because that is in dict[0]