I have a Javascript object
var a = {
    "tag1": "Stocks",
    "acctType1": "individual",
    "compare1": "contains",
    "match_name1": "scrapedaccounttype",
    "text1": "dog ",
    "tag2": "Stocks",
    "acctType2": "individual",
    "compare2": "contains",
    "match_name2": "scrapedaccounttype",
    "text2": "cat"
}
I need to use this Javascript object to do some more math, but I am not sure about how I would be iterating over the Javascript object.
I can have any number of tags (tag1, tag2, tag3, tag4 ... ) or similarly other keys like (acctType1, acctType2, acctType3.... )  so I need to iterate over them individually and do some manipulation to use these variables in a different function. 
While , for each what would help my cause here. Note that I could have any number of tags(tag1,tag2...) or comapare(compare1, compare2, compare3..)
I would need to process all of them individually.
 
     
     
    