var bound = async.bind({},'hello','world');
bound.call({},resolve,reject);
function async(){
console.log(arguments) //0:'hello', 1:'world', 2:resolve, 3:reject
//what I expect: 0:resolve, 1:reject, 2:'hello', 3:'world'
}
function resolve(){}
function reject(){}
When I have a function that is already bound with some arguments, and then I use .call
with extra arguments, these extra arguments are pushed (added to the end) into the arguments
object of this function.
Is it any possibility, to unshift (add to the beginning) these extra arguments to the arguments
object in this case when the function is already bound with some arguments?