Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiscript-dev/aiscript
/ isString
Function
isString
src/interpreter/util.ts:19–21 ·
view source on GitHub ↗
(val: Value)
Source
from the content-addressed store, hash-verified
17
}
18
19
export
function
isString(val: Value): val is VStr {
20
return
val.
type
===
'str'
;
21
}
22
23
export
function
isNumber(val: Value): val is VNum {
24
return
val.
type
===
'num'
;
Callers
1
assertString
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected