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

Function bound

demo/js/main.js:1863–1866  ·  view source on GitHub ↗
(/* args... */)

Source from the content-addressed store, hash-verified

1861 var fn = aFunction(this)
1862 , partArgs = _slice.call(arguments, 1);
1863 var bound = function(/* args... */){
1864 var args = partArgs.concat(_slice.call(arguments));
1865 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
1866 };
1867 if(isObject(fn.prototype))bound.prototype = fn.prototype;
1868 return bound;
1869 }

Callers

nothing calls this directly

Calls 1

constructFunction · 0.70

Tested by

no test coverage detected