Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiscript-dev/aiscript
/ isFunction
Function
isFunction
src/interpreter/util.ts:15–17 ·
view source on GitHub ↗
(val: Value)
Source
from the content-addressed store, hash-verified
13
}
14
15
export
function
isFunction(val: Value): val is VFn {
16
return
val.
type
===
'fn'
;
17
}
18
19
export
function
isString(val: Value): val is VStr {
20
return
val.
type
===
'str'
;
Callers
5
collectNsMember
Method · 0.85
collectNsMemberSync
Method · 0.85
__eval
Method · 0.85
__evalSync
Method · 0.85
assertFunction
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected