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

Function flatten

packages/core/src/util/array_utils.ts:38–40  ·  view source on GitHub ↗
(list: any[])

Source from the content-addressed store, hash-verified

36 * Flattens an array.
37 */
38export function flatten(list: any[]): any[] {
39 return list.flat(Number.POSITIVE_INFINITY);
40}
41
42export function deepForEach<T>(input: (T | any[])[], fn: (value: T) => void): void {
43 input.forEach((value) => (Array.isArray(value) ? deepForEach(value, fn) : fn(value)));

Callers 9

resetMethod · 0.90
convertToTypeArrayFunction · 0.90
compileNgModuleDefsFunction · 0.90
computeCombinedExportsFunction · 0.90
compileComponentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…