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

Function isEmpty

common/src/typecheck.ts:59–61  ·  view source on GitHub ↗
(v: any)

Source from the content-addressed store, hash-verified

57}
58
59export function isEmpty(v: any): boolean {
60 return v === null || v === undefined;
61}
62
63export function supposeValue<T>(v: any, def?: T) {
64 if (isEmpty(v)) return def;

Callers 5

toTextFunction · 0.85
toNumberFunction · 0.85
toBooleanFunction · 0.85
supposeValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected