Skip to main content
envIsNullish(key): boolean
Defined in: packages/env-utilities/src/lib/utils.ts:102 Checks if the value of the specified environment variable is nullish.

Parameters

key

keyof Env The name of the environment variable.

Returns

boolean Whether the value of the specified environment variable is:
  • undefined
  • An empty string ("")
  • The string "0"
  • The string "null", case insensitive