Skip to content

@kaelyx/ts-kit / string / ConvertCaseUnknownAcronyms

Variable: ConvertCaseUnknownAcronyms ​

const ConvertCaseUnknownAcronyms: object

Defined in: string/convert-case/convert-case.types.ts:61

How convertCase reads a run of capitals that is not a known acronym, when the run is next to lowercase letters, as in 'parseABCValue'. For ConvertCaseOptions.unknownAcronyms.

Type Declaration ​

split ​

readonly split: "split" = 'split'

Each capital is its own word: 'ABCValue' gives A, B, C and Value.

together ​

readonly together: "together" = 'together'

The run is one word. If a lowercase letter follows the run, the last capital starts the next word: 'ABCValue' gives ABC and Value.