TypeError · Unable to get property 'apply' of undefined or null referenc
alexoxte opened this issue · comments
Alex Oxte commented
--
function wrapNativeArrayMethod(methodName, wrapper) {
| var nativeFn = Array.prototype[methodName];
| return function (arr, f, context, argsLen) {
| var args = new Array(2);
| assertArgument(argsLen > 0);
| args[0] = wrapper(f, context);
| args[1] = context;
.......