* 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)
| 92 | * iteration is stopped. |
| 93 | */ |
| 94 | function eachProp(obj, func) { |
| 95 | var prop; |
| 96 | for (prop in obj) { |
| 97 | if (hasProp(obj, prop) && prop !== '__proto__' && prop !== 'constructor') { |
| 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, |
no test coverage detected
searching dependent graphs…