parseBoolean Function
Beta
Parses a string case-insensitively returning true for "ON" or "TRUE", false for "OFF" or "FALSE" and undefined otherwise. Used by various tools which take such arguments.
parseBoolean(arg: undefined | string): boolean | undefined
Parameter | Type | Description |
---|---|---|
arg | undefined | string |
Returns - boolean | undefined
Defined in
Last Updated: 20 June, 2023