CamelCase
Convert a string to camel case
Method Signature
CamelCase(string=[string])Arguments
Argument
Type
Required
Description
Default
string
string
true
The target string
Examples
Convert a string to camelCase
result = camelCase( "hello_world" );
writeOutput( result );
Result: helloWorld
Convert kebab-case to camelCase
result = camelCase( "my-variable-name" );
writeOutput( result );
Result: myVariableName
Using the member function
Result: fooBarBaz
Related
Last updated
Was this helpful?
