MCPcopy Index your code
hub / github.com/codeaashu/claude-code / safeEntries

Function safeEntries

src/commands/insights.ts:3025–3029  ·  view source on GitHub ↗
(
  obj: Record<string, V> | undefined | null,
)

Source from the content-addressed store, hash-verified

3023}
3024
3025function safeEntries<V>(
3026 obj: Record<string, V> | undefined | null,
3027): [string, V][] {
3028 return obj ? Object.entries(obj) : []
3029}
3030
3031function safeKeys(obj: Record<string, unknown> | undefined | null): string[] {
3032 return obj ? Object.keys(obj) : []

Callers 2

aggregateDataFunction · 0.85
buildExportDataFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected