MCPcopy Index your code
hub / github.com/angular/components / mergeArrayAndSet

Function mergeArrayAndSet

src/cdk/table/table.ts:1657–1659  ·  view source on GitHub ↗

Utility function that gets a merged list of the entries in an array and values of a Set.

(array: T[], set: Set<T>)

Source from the content-addressed store, hash-verified

1655
1656/** Utility function that gets a merged list of the entries in an array and values of a Set. */
1657function mergeArrayAndSet<T>(array: T[], set: Set<T>): T[] {
1658 return array.concat(Array.from(set));
1659}
1660
1661/**
1662 * Finds the closest table section to an outlet. We can't use `HTMLElement.closest` for this,

Callers 2

_cacheColumnDefsMethod · 0.85
_cacheRowDefsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected