hey I need to rewrite the invoke function from underscore js, it works unless more than 2 arguments are being passed, then it fails. would appreciate help from someone more experienced
let finishArr = [];
let aFunction = eval(methodName) /// given function as string, turning into function
_.each(collection, function(value,index,collection){
finishArr.push(aFunction.call(value))
})
return finishArr