MCPcopy Create free account
hub / github.com/codrops/RainEffect / methodize

Function methodize

demo/js/index.js:1927–1931  ·  view source on GitHub ↗
($fn)

Source from the content-addressed store, hash-verified

1925 };
1926};
1927var methodize = function($fn){
1928 return function(arg1/*, arg2 = undefined */){
1929 return $fn(this, arg1, arguments[1]);
1930 };
1931};
1932$def($def.P, 'Array', {
1933 // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
1934 forEach: $.each = $.each || methodize(arrayMethod(0)),

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected