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

Function createForIn

lib/web/jshint.js:4911–4918  ·  view source on GitHub ↗

* Creates a function for `_.forIn` or `_.forInRight`. * * @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

4909 * @returns {Function} Returns the new each function.
4910 */
4911 function createForIn(objectFunc) {
4912 return function(object, iteratee, thisArg) {
4913 if (typeof iteratee != 'function' || thisArg !== undefined) {
4914 iteratee = bindCallback(iteratee, thisArg, 3);
4915 }
4916 return objectFunc(object, iteratee, keysIn);
4917 };
4918 }
4919
4920 /**
4921 * Creates a function for `_.forOwn` or `_.forOwnRight`.

Callers 1

runInContextFunction · 0.85

Calls 1

bindCallbackFunction · 0.85

Tested by

no test coverage detected