ami_moor,
function partialAny() {
var c = arguments[0],
d = [].slice.call(arguments, 1),
a;
return function() {
var e = 0;
a = [].slice.call(arguments, 0);
a = d.map(function(b) {
return void 0 === b ? a[e++] : b
});
return c.apply(this, a)
}
};
function test(a, b, c) { return "a=" + a + ", b=" + b + ", c=" + c}
var test1_3 = partialAny(test, 1, undefined, 3, undefined);
console.log(test1_3(5, 9, 22, "asdasd")); // a=1,b=5,c=3
console.log(test1_3(1, 2, 4, "7")); // a=1,b=1,c=3