Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
function
filterUndefined(obj: Record<string, any>) {
2
return
Object.fromEntries(
3
Object.entries(obj).filter(([_, value]) => value !== undefined)
4
);
5
}
Callers
2
filterUndefined.test.ts
File · 0.85
constructor
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected