* Helper function for iterating over an array. If the func returns * a true value, it will break out of the loop.
(ary, func)
| 51 | * a true value, it will break out of the loop. |
| 52 | */ |
| 53 | function each(ary, func) { |
| 54 | if (ary) { |
| 55 | var i; |
| 56 | for (i = 0; i < ary.length; i += 1) { |
| 57 | if (ary[i] && func(ary[i], i, ary)) { |
| 58 | break; |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Helper function for iterating over an array backwards. If the func |
no outgoing calls
no test coverage detected
searching dependent graphs…