* 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)
| 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, |
no test coverage detected
searching dependent graphs…