Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ isBoolean
Function
isBoolean
packages/router/src/utils/type_guards.ts:30–32 ·
view source on GitHub ↗
(v: any)
Source
from the content-addressed store, hash-verified
28
}
29
30
export
function
isBoolean(v: any): v is boolean {
31
return
typeof v ===
'boolean'
;
32
}
33
34
export
function
isCanLoad(guard: any): guard is {canLoad: CanLoadFn} {
35
return
guard && isFunction<CanLoadFn>(guard.canLoad);
Callers
1
checkGuards
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected