Below is my code to call a function using array as parameters:
const x = ['p0', 'p1', 'p2'];
call_me(x[0], x[1], x[2]); // I don't like it
function call_me (param0, param1, param2 ) {
// ...
}
Can anyone tell me what’s the best way to pass the contents of x into call_me()?