toKebabCase


Description:

public static string toKebabCase (string? s)

Convert the string to kebab-case.

Example:

    assert (Strings.toKebabCase ("helloWorld") == "hello-world");
assert (Strings.toKebabCase ("Hello World") == "hello-world");

Parameters:

s

the string.

Returns:

kebab-case string.