MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / normalizeArray

Function normalizeArray

packages/codex-native-api/src/native_api_server.ts:3052–3054  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3050}
3051
3052function normalizeArray(value: unknown): any[] {
3053 return Array.isArray(value) ? value : [];
3054}
3055
3056function normalizeRecord(value: unknown): JsonRecord | null {
3057 if (!value || typeof value !== 'object' || Array.isArray(value)) {

Calls

no outgoing calls

Tested by

no test coverage detected