MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / isBoolean

Function isBoolean

src/interpreter/util.ts:11–13  ·  view source on GitHub ↗
(val: Value)

Source from the content-addressed store, hash-verified

9}
10
11export function isBoolean(val: Value): val is VBool {
12 return val.type === 'bool';
13}
14
15export function isFunction(val: Value): val is VFn {
16 return val.type === 'fn';

Callers 1

assertBooleanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected