MCPcopy
hub / github.com/moxiecode/plupload / eachProp

Function eachProp

tests/js/require.js:94–103  ·  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

92 * iteration is stopped.
93 */
94 function eachProp(obj, func) {
95 var prop;
96 for (prop in obj) {
97 if (hasProp(obj, prop)) {
98 if (func(obj[prop], prop)) {
99 break;
100 }
101 }
102 }
103 }
104
105 /**
106 * 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