Converts a given string to dot.case format.
The input string to convert.
The dot.case version of the input string, or an empty string if input is falsy.
toDotCase('HelloWorld'); // "hello.world"toDotCase('foo_bar-baz'); // "foo.bar.baz"toDotCase(' someInputValue '); // "some.input.value"toDotCase(undefined); // "" Copy
toDotCase('HelloWorld'); // "hello.world"toDotCase('foo_bar-baz'); // "foo.bar.baz"toDotCase(' someInputValue '); // "some.input.value"toDotCase(undefined); // ""
Converts a given string to dot.case format.