MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / deleteUndefined

Function deleteUndefined

supabase/functions/execute-code-2/utils.ts:30–39  ·  view source on GitHub ↗
(
  obj: InputType,
)

Source from the content-addressed store, hash-verified

28}
29
30function deleteUndefined<InputType extends Record<string, any | undefined>>(
31 obj: InputType,
32): Partial<InputType> {
33 for (let key in obj) {
34 if (obj[key] === undefined) {
35 delete obj[key];
36 }
37 }
38 return obj;
39}
40
41export function deduplicateArray<ArrType extends any[]>(
42 arr: ArrType,

Callers 1

deduplicateArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected