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

Function createForOwn

lib/web/jshint.js:4927–4934  ·  view source on GitHub ↗

* 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.

(objectFunc)

Source from the content-addressed store, hash-verified

4925 * @returns {Function} Returns the new each function.
4926 */
4927 function createForOwn(objectFunc) {
4928 return function(object, iteratee, thisArg) {
4929 if (typeof iteratee != 'function' || thisArg !== undefined) {
4930 iteratee = bindCallback(iteratee, thisArg, 3);
4931 }
4932 return objectFunc(object, iteratee);
4933 };
4934 }
4935
4936 /**
4937 * Creates a function for `_.padLeft` or `_.padRight`.

Callers 1

runInContextFunction · 0.85

Calls 1

bindCallbackFunction · 0.85

Tested by

no test coverage detected