For the complete documentation index, see llms.txt. This page is also available as Markdown.

SnakeCase

Convert a string to snake case

Method Signature

SnakeCase(string=[string])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The target string

Examples

Convert a string to snake_case

result = snakeCase( "helloWorld" );
writeOutput( result );

Result: hello_world

Convert PascalCase to snake_case

result = snakeCase( "MyVariableName" );
writeOutput( result );

Result: my_variable_name

Using the member function

Result: foo_bar_baz

Last updated

Was this helpful?