If product_ids is a list field in your plugin then it’s not an array. It’s a bubble-specific object with methods for getting the actual array of values.
If you read the documentation above the plugin’s function (it’s updated dinamically) you can see how it works.
The bubble list it’s still javascript. As I said it’s explained in the documentation inside the plugin editor how to get an array of values. If you don’t see it then it’s not a list field that you have.
Yeah, I got it. there’s a function to return an array when applied to the current list. then I use forEach to the return and it treats it like normal javascript.
Just to clarify: the list you get from the properties object IS normal javascript, it’s an object. The only thing is that it’s not an array. Nothing magic or non-javascript happening here.