Sha256: 289aa28e3bc93bb7759d4d7b4b3ddcb91b668fc36ea23df4d1991e34e1c217fd
Contents?: true
Size: 541 Bytes
Versions: 153
Compression:
Stored size: 541 Bytes
Contents
var bindCallback = require('./bindCallback'); /** * Creates a function for `_.forOwn` or `_.forOwnRight`. * * @private * @param {Function} objectFunc The function to iterate over an object. * @returns {Function} Returns the new each function. */ function createForOwn(objectFunc) { return function(object, iteratee, thisArg) { if (typeof iteratee != 'function' || thisArg !== undefined) { iteratee = bindCallback(iteratee, thisArg, 3); } return objectFunc(object, iteratee); }; } module.exports = createForOwn;
Version data entries
153 entries across 80 versions & 8 rubygems