MCPcopy Create free account
hub / github.com/Effect-TS/effect / emptyStringAsMissing

Function emptyStringAsMissing

packages/effect/src/ConfigProvider.ts:831–833  ·  view source on GitHub ↗
(value: string | undefined, preserveEmptyStrings: boolean)

Source from the content-addressed store, hash-verified

829}
830
831function emptyStringAsMissing(value: string | undefined, preserveEmptyStrings: boolean): string | undefined {
832 return value === "" && !preserveEmptyStrings ? undefined : value
833}
834
835/**
836 * Creates a `ConfigProvider` backed by an explicit environment record.

Callers 2

stringNodeFunction · 0.85
nodeAtEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected