MCPcopy Index your code
hub / github.com/simstudioai/sim / cleanODataMetadata

Function cleanODataMetadata

apps/sim/tools/sharepoint/utils.ts:105–120  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

103}
104
105export function cleanODataMetadata<T>(obj: T): T {
106 if (!obj || typeof obj !== 'object') return obj
107
108 if (Array.isArray(obj)) {
109 return obj.map((item) => cleanODataMetadata(item)) as T
110 }
111
112 const cleaned: Record<string, unknown> = {}
113 for (const [key, value] of Object.entries(obj as Record<string, unknown>)) {
114 if (key.includes('@odata')) continue
115
116 cleaned[key] = cleanODataMetadata(value)
117 }
118
119 return cleaned as T
120}

Callers 1

read_page.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected