Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/github/docs
/ ExcludesNull
Function
ExcludesNull
components/lib/ExcludesNull.ts:1–3 ·
view source on GitHub ↗
(x: T | null)
Source
from the content-addressed store, hash-verified
1
export
function
ExcludesNull<T>(x: T | null): x is T {
2
return
x !== null
3
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected