I have a function defined like this:
doSomething(a,b,c){// ...}
And an array defined like this:
var args = [$(‘.p’),‘#ffc’,’10px’];
I want to call doSomething and pass it all the elements of args as parameters.
Something like:
doSomething($(‘.p’), ‘#ffc’, ‘10px’);
Note that I dont want to change doSomething to have an array as arguments.
Any help !