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

Function deleteUndefined

lib/utils.ts:172–181  ·  view source on GitHub ↗
(
  obj: InputType,
)

Source from the content-addressed store, hash-verified

170}
171
172function deleteUndefined<InputType extends Record<string, any | undefined>>(
173 obj: InputType,
174): Partial<InputType> {
175 for (let key in obj) {
176 if (obj[key] === undefined) {
177 delete obj[key];
178 }
179 }
180 return obj;
181}
182
183export function deduplicateArray<ArrType extends any[]>(
184 arr: ArrType,

Callers 1

deduplicateArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected