input function
callback function
input function context
function wrapper
function foo( a, b, c ) {
return [ a, b, c ];
}
function clbk( v ) {
return v * 2;
}
var bar = mapArguments( foo, clbk );
var out = bar( 1, 2, 3 );
// returns [ 2, 4, 6 ]
Returns a function that applies arguments to a provided function after transforming arguments according to a callback function.
Notes
The callback function is provided the following arguments: