MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / unwrap_each

Function unwrap_each

packages/debugger/src/main/utils.ts:5–9  ·  view source on GitHub ↗
(arr: readonly T[] | null | undefined)

Source from the content-addressed store, hash-verified

3import setup from './setup.ts'
4
5export function* unwrap_each<T>(arr: readonly T[] | null | undefined): ArrayIterator<T> {
6 if (arr != null) {
7 yield* arr.values()
8 }
9}
10
11export function append_array<T>(arr: T[], items: readonly T[]): void {
12 arr.push.apply(arr, items as any)

Callers 1

owner_each_childFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…