ArrayList class has a method called toArray() that we are using in our example to convert it into Arrays. Following is simple code snippet that converts an array list of countries into string array.
I'm trying to call a function with Frida that takes a string array as one of its arguments. I could probably create a string array from scratch, but I don't know how to express it in Javascript.