API Reference > frontend-devtools > Utilities > parseToggle parseToggle Function Beta Parses a string case-insensitively returning true for "ON", false for "OFF" undefined for "TOGGLE" or undefined, and the input string for anything else Used by various tools which take such arguments. parseToggle(arg: string | undefined): string | boolean | undefined Parameter Type Description arg string | undefined Returns - string | boolean | undefined Defined in frontend-devtools/src/tools/parseToggle.ts Line 14 Last Updated: 13 June, 2024