MCPcopy
hub / github.com/nbubna/store / eachProp

Function eachProp

libs/requirejs.js:92–101  ·  view source on GitHub ↗

* Cycles over properties in an object and calls a function for each * property value. If the function returns a truthy value, then the * iteration is stopped.

(obj, func)

Source from the content-addressed store, hash-verified

90 * iteration is stopped.
91 */
92 function eachProp(obj, func) {
93 var prop;
94 for (prop in obj) {
95 if (hasProp(obj, prop)) {
96 if (func(obj[prop], prop)) {
97 break;
98 }
99 }
100 }
101 }
102
103 /**
104 * Simple function to mix in properties from source into target,

Callers 3

mixinFunction · 0.85
checkLoadedFunction · 0.85
newContextFunction · 0.85

Calls 1

hasPropFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…