* Merge an Array of Objects into a single Object.
(arr)
| 249 | * Merge an Array of Objects into a single Object. |
| 250 | */ |
| 251 | function toObject (arr) { |
| 252 | var res = {}; |
| 253 | for (var i = 0; i < arr.length; i++) { |
| 254 | if (arr[i]) { |
| 255 | extend(res, arr[i]); |
| 256 | } |
| 257 | } |
| 258 | return res |
| 259 | } |
| 260 | |
| 261 | /* eslint-disable no-unused-vars */ |
| 262 |
no test coverage detected