Then what you do is a map over those results, insi...
# suitescript
a
Then what you do is a map over those results, inside that map you do a .filter and you return an object like this: {vendor: myVendor,myAccount: account1,account2,account3}