I am dealing with an array of tuples:
var tuparray: [string, number][];
tuparray = [["0x123", 11], ["0x456", 7], ["0x789", 6]];
const addressmatch = tuparray.includes(manualAddress);
In my function, I aim to verify if the tuparray includes a user input (string) called manualAddress. Should it discover a match in any of the tuples, it should output the value from the number at [1] position of the tuple.
if (addressmatch){
console.log("address qualifies for [matched tuple number here]");
I would greatly appreciate assistance on this matter!