MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / bind

Function bind

MathBox/mathbox-bundle.js:40304–40308  ·  view source on GitHub ↗

* Creates a function that, when called, invokes `func` with the `this` * binding of `thisArg` and prepends any additional `bind` arguments to those * provided to the bound function. * * @static * @memberOf _ * @category Functions * @param {Function} func The functi

(func, thisArg)

Source from the content-addressed store, hash-verified

40302 * // => 'hi fred'
40303 */
40304 function bind(func, thisArg) {
40305 return arguments.length > 2
40306 ? createWrapper(func, 17, slice(arguments, 2), null, thisArg)
40307 : createWrapper(func, 1, null, null, thisArg);
40308 }
40309
40310 /**
40311 * Binds methods of an object to the object itself, overwriting the existing

Callers 5

baseCreateCallbackFunction · 0.70
mathbox-bundle.jsFile · 0.70
ComponentFunction · 0.70
DataFunction · 0.70
VoxelFunction · 0.70

Calls 2

createWrapperFunction · 0.85
sliceFunction · 0.85

Tested by

no test coverage detected