I am looping through a transaction list and pushing values to an array.
autoArry.push({
id: countTxns,
txnID: txnID,
account: buyersAccount
});
doSomething();
function doSomething(){
var newData = '1234,4567,5678,8900';
//Loop Here
}
I need to loop through the autoArry with my newData. When my newData matches the
txnID in the array, i then need to access the account number that corresponds with it.
What would be the best way to find the value in an array and then access all values tied to that block?