MCPcopy
hub / github.com/jashkenas/underscore / bound

Function bound

underscore.js:1029–1037  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1027 var partial = restArguments(function(func, boundArgs) {
1028 var placeholder = partial.placeholder;
1029 var bound = function() {
1030 var position = 0, length = boundArgs.length;
1031 var args = Array(length);
1032 for (var i = 0; i < length; i++) {
1033 args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];
1034 }
1035 while (position < arguments.length) args.push(arguments[position++]);
1036 return executeBound(func, bound, this, this, args);
1037 };
1038 return bound;
1039 });
1040

Callers 1

functions.jsFile · 0.50

Calls 1

executeBoundFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…