* Merge an Array of Objects into a single Object.
(arr)
| 175 | * Merge an Array of Objects into a single Object. |
| 176 | */ |
| 177 | function toObject (arr) { |
| 178 | var res = {}; |
| 179 | for (var i = 0; i < arr.length; i++) { |
| 180 | if (arr[i]) { |
| 181 | extend(res, arr[i]); |
| 182 | } |
| 183 | } |
| 184 | return res |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Perform no operation. |
no test coverage detected