Skip to main content

TransformCase

@webda/utils


Function: TransformCase()

TransformCase(name, newCase): string

Defined in: packages/utils/src/case.ts:16

Transform a string to a different case style.

Parameters​

name​

string

The input string to transform

newCase​

TransformCaseType

The target case style to apply

Returns​

string

The transformed string, or the original string unchanged if newCase is "none" or "UPPERCASE"