How to pass a list of parameters as URL query parameters

I just found out that it suffices to use “,” as a separator when creating the query parameter string. So, the following fixes my issue:

wixLocation.to("/stores/products?foo=asd,qwe");

What is even cooler is that on the receiving side the query is already given in a list format. Great!