Let's say we have a function
f = function(a, b, c){
// do something important
}
and an array containing the arguments
var args = [5, 'string', 12] // just any values
Obviously, I could call my function like this :
f(args[0], args[1], args[2])
This is really not elegant, and I look for a better way to accomplish this. Thanks for your suggestions.
callandapply; in particular,applyapplies here.