MCPcopy 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
23export function isNumber(val: Value): val is VNum {
24 return val.type === 'num';
25}
26
27export function isObject(val: Value): val is VObj {
28 return val.type === 'obj';

Callers 1

assertNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected