MCPcopy Create free account
hub / github.com/arktypeio/arktype / printValue

Function printValue

ark/aot/settingsValidators.ts:575–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573 description = rule === 2 ? "even" : `a multiple of ${rule}`
574) => check("divisor", description, data => data % rule === 0)
575var printValue = value =>
576 typeof value === "string" ? JSON.stringify(value) : `${value}`
577var listed = printed => {
578 const last = printed.pop()
579 return printed.length ? `${printed.join(", ")} or ${last}` : last

Callers 1

unitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected