MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / stringOrEmpty

Function stringOrEmpty

src/strings.ts:17–19  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

15 * @returns String(value) or ""
16 */
17export function stringOrEmpty(value: unknown): string {
18 return value == null ? "" : String(value)
19}
20
21export function parseSlotTypes(type: ISlotType): string[] {
22 return type == "" || type == "0" ? ["*"] : String(type).toLowerCase().split(",")

Callers 3

drawExecutionOrderMethod · 0.90
loadMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected