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

Function unwrap_append

packages/debugger/src/main/utils.ts:14–18  ·  view source on GitHub ↗
(arr: T[], item: T | null | undefined)

Source from the content-addressed store, hash-verified

12 arr.push.apply(arr, items as any)
13}
14export function unwrap_append<T>(arr: T[], item: T | null | undefined): void {
15 if (item != null) {
16 arr.push(item)
17 }
18}
19export function unwrap_append_array<T>(arr: T[], items: readonly T[] | null | undefined): void {
20 if (items != null) {
21 arr.push.apply(arr, items as any)

Callers 2

mapChildrenFunction · 0.90
createLocatorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…