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