Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / createFindKey.js
1 var baseCallback = require('./baseCallback'),
2     baseFind = require('./baseFind');
3
4 /**
5  * Creates a `_.findKey` or `_.findLastKey` function.
6  *
7  * @private
8  * @param {Function} objectFunc The function to iterate over an object.
9  * @returns {Function} Returns the new find function.
10  */
11 function createFindKey(objectFunc) {
12   return function(object, predicate, thisArg) {
13     predicate = baseCallback(predicate, thisArg, 3);
14     return baseFind(object, predicate, objectFunc, true);
15   };
16 }
17
18 module.exports = createFindKey;