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