MCPcopy Index your code
hub / github.com/angular/angular / optionsReducer

Function optionsReducer

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

Source from the content-addressed store, hash-verified

153const MAXIMUM_REFRESH_RERUNS = 10;
154
155export function optionsReducer<T extends Object>(dst: T, objs: T | T[]): T {
156 if (Array.isArray(objs)) {
157 return objs.reduce(optionsReducer, dst);
158 }
159 return {...dst, ...objs};
160}
161
162/**
163 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…