Returns a function that applies specified arguments to a provided function.
input function
argument indices
function context
function wrapper
function foo( a, b ) { return [ a, b ]; } var bar = pickArguments( foo, [ 0, 2 ] ); var out = bar( 1, 2, 3 ); // returns [ 1, 3 ]
Returns a function that applies specified arguments to a provided function.