Test the code by defining an array and pass that array as an argument in your function in javascript code example
Example: javascript function with array parameter
const args = ['test0','test1','test2'];
function call_me(param1, param2, param3){
//
}
call_me.apply(this, args);