1 var baseCallback = require('./baseCallback'),
2 baseFind = require('./baseFind');
5 * Creates a `_.findKey` or `_.findLastKey` function.
8 * @param {Function} objectFunc The function to iterate over an object.
9 * @returns {Function} Returns the new find function.
11 function createFindKey(objectFunc) {
12 return function(object, predicate, thisArg) {
13 predicate = baseCallback(predicate, thisArg, 3);
14 return baseFind(object, predicate, objectFunc, true);
18 module.exports = createFindKey;