MCPcopy Create free account
hub / github.com/bytespider/Meross / filterUndefined

Function filterUndefined

packages/lib/src/utils/filterUndefined.ts:1–5  ·  view source on GitHub ↗
(obj: Record<string, any>)

Source from the content-addressed store, hash-verified

1export function filterUndefined(obj: Record<string, any>) {
2 return Object.fromEntries(
3 Object.entries(obj).filter(([_, value]) => value !== undefined)
4 );
5}

Callers 2

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected