How can I call Function.prototype.bind with an array of arguments, as opposed to hardcoded arguments? (Not using ECMA6, so no spread operator).
I\'m trying to put a
If someone is looking for an abstract sample:
var binded = hello.apply.bind(hello,null,['hello','world']); binded(); function hello(a,b){ console.log(this); //null console.log(a); //hello console.log(b); //world }