MCPcopy Create free account
hub / github.com/angular/angular / optionsReducer

Function optionsReducer

packages/core/src/application/application_ref.ts:166–171  ·  view source on GitHub ↗
(dst: T, objs: T | T[])

Source from the content-addressed store, hash-verified

164const MAXIMUM_REFRESH_RERUNS = 10;
165
166export 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.

Callers 1

bootstrapModuleMethod · 0.90

Calls 2

isArrayMethod · 0.80
reduceMethod · 0.80

Tested by

no test coverage detected