2 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
5 * @param {boolean} [fromRight] Specify iterating from right to left.
6 * @returns {Function} Returns the new base function.
8 function createBaseFor(fromRight) {
9 return function(object, iteratee, keysFunc) {
11 iterable = Object(object),
12 props = keysFunc(object),
13 length = props.length;
16 var key = props[fromRight ? length : ++index];
17 if (iteratee(iterable[key], key, iterable) === false) {
25 module.exports = createBaseFor;