MCPcopy Create free account
hub / github.com/antfu/utils / mergeArrayable

Function mergeArrayable

src/array.ts:28–30  ·  view source on GitHub ↗
(...args: Nullable<Arrayable<T>>[])

Source from the content-addressed store, hash-verified

26 * @category Array
27 */
28export function mergeArrayable<T>(...args: Nullable<Arrayable<T>>[]): Array<T> {
29 return args.flatMap(i => toArray(i))
30}
31
32export type PartitionFilter<T> = (i: T, idx: number, arr: readonly T[]) => any
33

Callers

nothing calls this directly

Calls 1

toArrayFunction · 0.85

Tested by

no test coverage detected