isEnvVariableOff
Determines whether the environment variable is set to an off value (0, false, no, or off, case-insensitively and ignoring surrounding whitespace).
Import:
import { isEnvVariableOff } from 'obsidian-dev-utils/script-utils/env-toggle';Signature:
function isEnvVariableOff(envVariableName: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
envVariableName | string | The name of the environment variable to inspect. |
Returns: boolean — true when the variable is set to an off value, otherwise false.
Links to this page: