Invoked function.
Invoked function.
Invokes a function n
times and returns an array of accumulated function return values.
function to invoke
number of function invocations
execution context
accumulated results
function fcn( i ) {
return i;
}
var arr = mapFun( fcn, 5 );
// returns [ 0, 1, 2, 3, 4 ]
Invoked function.
invocation index
result