const args = ['p0', 'p1', 'p2'];
call_me.apply(this, args);
See MDN docs for Function.prototype.apply()
.
If the environment supports ECMAScript 6, you can use a spread argument instead:
call_me(...args);
More Related Contents:
- How can I create an option element using javascript and set it’s value [duplicate]
- What is the difference between a function call and function reference?
- Javascript call() & apply() vs bind()?
- How to add an object to an array
- How can I create every combination possible for the contents of two arrays?
- Explanation of [].slice.call in javascript?
- Javascript Array of Functions
- Fastest JavaScript summation
- Why doesn’t console.log work when passed as a parameter to forEach?
- How can I use optional chaining with arrays and functions?
- Find all values by specific key in a deep nested object
- .indexOf function on an array not working in IE7/8 using JavaScript
- How to add same elements to javascript array n times
- Are Javascript arrays primitives? Strings? Objects?
- Finding matches between multiple JavaScript Arrays
- javascript filter array multiple conditions
- How does `Array.prototype.slice.call` work?
- Calling a JavaScript function named in a variable [duplicate]
- How to transpose a javascript object into a key/value array
- Array.push() if does not exist?
- How to search in array of object in mongodb
- Alternative or polyfill for Array.from on the Internet Explorer
- How to Compare two Arrays are Equal using Javascript? [duplicate]
- Why Array.forEach is slower than for() loop in Javascript? [duplicate]
- Array destructuring in JavaScript
- Array.includes() to find object in array
- What happens if I call a function with more arguments than it is defined to accept?
- How to use Array.prototype.filter with async?
- Creating an array consisting of the largest values of each sub-array does not work as expected
- Find last index of element inside array by certain condition