* Helper function for iterating over an array backwards. If the func * returns a true value, it will break out of the loop.
(ary, func)
| 68 | * returns a true value, it will break out of the loop. |
| 69 | */ |
| 70 | function eachReverse(ary, func) { |
| 71 | if (ary) { |
| 72 | var i; |
| 73 | for (i = ary.length - 1; i > -1; i -= 1) { |
| 74 | if (ary[i] && func(ary[i], i, ary)) { |
| 75 | break; |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | function hasProp(obj, prop) { |
| 82 | return hasOwn.call(obj, prop); |
no test coverage detected
searching dependent graphs…