compares source of truth and possible options data.
Step 1: get potential makes and use them as keys to check.
Step 2: remove duplicates from potential makes array.
Step 3: run loop over api data, run loop over possible matches within that, run loop over possible matches correlating to car data looking for comparisons.
Step 4: return clean data and reduce over that to get narrow results.
Time to refactor.
compares source of truth and possible options data. Step 1: get potential makes and use them as keys to check. Step 2: remove duplicates from potential makes array. Step 3: run loop over api data, run loop over possible matches within that, run loop over possible matches correlating to car data looking for comparisons. Step 4: return clean data and reduce over that to get narrow results. Time to refactor.