MCPcopy Index your code
hub / github.com/Raynos/function-bind / binder

Function binder

implementation.js:50–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49 var bound;
50 var binder = function () {
51 if (this instanceof bound) {
52 var result = target.apply(
53 this,
54 concatty(args, arguments)
55 );
56 if (Object(result) === result) {
57 return result;
58 }
59 return this;
60 }
61 return target.apply(
62 that,
63 concatty(args, arguments)
64 );
65
66 };
67
68 var boundLength = max(0, target.length - args.length);
69 var boundArgs = [];

Callers

nothing calls this directly

Calls 1

concattyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…