(collection, callback, thisArg)
| 37149 | * // => logs 'x', 'y', and 'move' (property order is not guaranteed across environments) |
| 37150 | */ |
| 37151 | var forIn = function(collection, callback, thisArg) { |
| 37152 | var index, iterable = collection, result = iterable; |
| 37153 | if (!iterable) return result; |
| 37154 | if (!objectTypes[typeof iterable]) return result; |
| 37155 | callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); |
| 37156 | for (index in iterable) { |
| 37157 | if (callback(iterable[index], index, collection) === false) return result; |
| 37158 | } |
| 37159 | return result |
| 37160 | }; |
| 37161 | |
| 37162 | /** |
| 37163 | * This method is like `_.forIn` except that it iterates over elements |
no test coverage detected