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

Function flatten

packages/config/src/index.ts:30–32  ·  view source on GitHub ↗
(arr: Array<T[]>)

Source from the content-addressed store, hash-verified

28} as const;
29
30function flatten<T>(arr: Array<T[]>): T[] {
31 return ([] as T[]).concat(...arr);
32}
33
34function getNormalizedChangelogOption(
35 thing: false | readonly [string, any] | string

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected