Strings.camelCase()
Syntax
function camelCase(source: string): string
Converts a string to camelCase.
Parameters | |
source
|
A string whose casing is either snake_case, ALL_CAPS, hyphenated-case, or spaced text. Other types of casing are unsupported and may deliver unexpected results. |
Example
import { Strings } from 'potence';
Strings.camelCase('some string'); // -> 'someString'
Strings.camelCase('some-string'); // -> 'someString'
Strings.camelCase('some_string'); // -> 'someString'
Remarks
Compare Strings.pascalCase()
.