MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / executeBound

Function executeBound

docs/_static/underscore-1.13.1.js:985–991  ·  view source on GitHub ↗
(sourceFunc, boundFunc, context, callingContext, args)

Source from the content-addressed store, hash-verified

983 // `args`. Determines whether to execute a function as a constructor or as a
984 // normal function.
985 function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
986 if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
987 var self = baseCreate(sourceFunc.prototype);
988 var result = sourceFunc.apply(self, args);
989 if (isObject(result)) return result;
990 return self;
991 }
992
993 // Partially apply a function by creating a version that has had some of its
994 // arguments pre-filled, without changing its dynamic `this` context. `_` acts

Callers 2

boundFunction · 0.85

Calls 2

baseCreateFunction · 0.85
isObjectFunction · 0.85

Tested by

no test coverage detected