Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chakra-ui/panda
/ compact
Function
compact
packages/shared/src/compact.ts:1–3 ·
view source on GitHub ↗
(value: T)
Source
from the content-addressed store, hash-verified
1
export
function
compact<T extends Record<string, any>>(value: T) {
2
return
Object.fromEntries(Object.entries(value ?? {}).filter(([_, value]) => value !== undefined)) as T
3
}
Callers
9
registerTokens
Method · 0.90
generateThemes
Function · 0.90
generatePattern
Function · 0.90
processPattern
Function · 0.90
Context
Class · 0.90
Utility
Class · 0.90
main
Function · 0.90
compactStyles
Function · 0.90
getPatternStyles
Function · 0.90
Calls
2
filter
Method · 0.80
entries
Method · 0.80
Tested by
no test coverage detected