MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / createFindKey

Function createFindKey

lib/web/jshint.js:4827–4832  ·  view source on GitHub ↗

* Creates a `_.findKey` or `_.findLastKey` function. * * @private * @param {Function} objectFunc The function to iterate over an object. * @returns {Function} Returns the new find function.

(objectFunc)

Source from the content-addressed store, hash-verified

4825 * @returns {Function} Returns the new find function.
4826 */
4827 function createFindKey(objectFunc) {
4828 return function(object, predicate, thisArg) {
4829 predicate = getCallback(predicate, thisArg, 3);
4830 return baseFind(object, predicate, objectFunc, true);
4831 };
4832 }
4833
4834 /**
4835 * Creates a `_.flow` or `_.flowRight` function.

Callers 1

runInContextFunction · 0.85

Calls 2

getCallbackFunction · 0.85
baseFindFunction · 0.85

Tested by

no test coverage detected