andrewplummer / Sugar

A Javascript library for working with native objects.

Home Page:https://sugarjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError · Unable to get property 'apply' of undefined or null referenc

alexoxte opened this issue · comments

--
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;

.......