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

Function isFunction

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

Source from the content-addressed store, hash-verified

13}
14
15export function isFunction(val: Value): val is VFn {
16 return val.type === 'fn';
17}
18
19export function isString(val: Value): val is VStr {
20 return val.type === 'str';

Callers 5

collectNsMemberMethod · 0.85
collectNsMemberSyncMethod · 0.85
__evalMethod · 0.85
__evalSyncMethod · 0.85
assertFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected