MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / supposeValue

Function supposeValue

common/src/typecheck.ts:63–66  ·  view source on GitHub ↗
(v: any, def?: T)

Source from the content-addressed store, hash-verified

61}
62
63export function supposeValue<T>(v: any, def?: T) {
64 if (isEmpty(v)) return def;
65 return v;
66}

Callers

nothing calls this directly

Calls 1

isEmptyFunction · 0.85

Tested by

no test coverage detected