(dst: T, objs: T | T[])
| 164 | const MAXIMUM_REFRESH_RERUNS = 10; |
| 165 | |
| 166 | export function optionsReducer<T extends Object>(dst: T, objs: T | T[]): T { |
| 167 | if (Array.isArray(objs)) { |
| 168 | return objs.reduce(optionsReducer, dst); |
| 169 | } |
| 170 | return {...dst, ...objs}; |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * A reference to an Angular application running on a page. |
no test coverage detected