MCPcopy 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
19export function isString(val: Value): val is VStr {
20 return val.type === 'str';
21}
22
23export function isNumber(val: Value): val is VNum {
24 return val.type === 'num';

Callers 1

assertStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected