Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chakra-ui/panda
/ isCssFunction
Function
isCssFunction
packages/shared/src/is-css-function.ts:4–4 ·
view source on GitHub ↗
(v: unknown)
Source
from the content-addressed store, hash-verified
2
const
fnRegExp =
new
RegExp(`^(${fns.join(
'|'
)})\\(.*\\)`)
3
4
export
const
isCssFunction = (v: unknown) => typeof v ===
'string'
&& fnRegExp.test(v)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected