MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / flattenDepth

Function flattenDepth

js/botasaurus-js/src/list-utils.ts:13–15  ·  view source on GitHub ↗
(array: (any[] | any)[], depth: number = 1)

Source from the content-addressed store, hash-verified

11}
12
13function flattenDepth(array: (any[] | any)[], depth: number = 1): any[] {
14 return iterFlatten(array, depth);
15}
16
17function flatten(array: (any[] | any)[]): any[] {
18 return flattenDepth(array, 1);

Callers 2

flattenFunction · 0.85
flattenDeepFunction · 0.85

Calls 1

iterFlattenFunction · 0.85

Tested by

no test coverage detected