MCPcopy Create free account
hub / github.com/ajv-validator/ajv / emptyStr

Method emptyStr

lib/compile/codegen/code.ts:46–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 emptyStr(): boolean {
47 if (this._items.length > 1) return false
48 const item = this._items[0]
49 return item === "" || item === '""'
50 }
51
52 get str(): string {
53 return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, ""))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected