MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / assert

Function assert

test/util.ts:53–55  ·  view source on GitHub ↗
(value: any, message?: string | Error)

Source from the content-addressed store, hash-verified

51}
52
53export function assert(value: any, message?: string | Error): asserts value {
54 nativeAssert.ok(value, message);
55}
56
57export const formatCode = (...values: unknown[]) => values.map(e => stringify(e)).join(", ");
58

Callers 2

getMainJsCodeChunkFunction · 0.70
executeJsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected