MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / bindKey

Function bindKey

MathBox/mathbox-bundle.js:40380–40384  ·  view source on GitHub ↗

* Creates a function that, when called, invokes the method at `object[key]` * and prepends any additional `bindKey` arguments to those provided to the bound * function. This method differs from `_.bind` by allowing bound functions to * reference methods that will be redefined or don't

(object, key)

Source from the content-addressed store, hash-verified

40378 * // => 'hiya fred!'
40379 */
40380 function bindKey(object, key) {
40381 return arguments.length > 2
40382 ? createWrapper(key, 19, slice(arguments, 2), null, object)
40383 : createWrapper(key, 3, null, null, object);
40384 }
40385
40386 /**
40387 * Creates a function that is the composition of the provided functions,

Callers

nothing calls this directly

Calls 2

createWrapperFunction · 0.85
sliceFunction · 0.85

Tested by

no test coverage detected