MCPcopy
hub / github.com/jestjs/jest / flatten

Function flatten

packages/diff-sequences/src/__tests__/index.property.test.ts:39–45  ·  view source on GitHub ↗
(data: Array<Array<string>>)

Source from the content-addressed store, hash-verified

37};
38
39const flatten = (data: Array<Array<string>>) => {
40 const array: Array<string> = [];
41 for (const items of data) {
42 array.push(...items);
43 }
44 return array;
45};
46
47const isSubsequenceOf = (
48 subsequence: Array<string>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected