TS-Scribe - v0.6.2
    Preparing search index...

    Function toDotCase

    • Converts a given string to dot.case format.

      Parameters

      • text: string | undefined

        The input string to convert.

      Returns string

      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); // ""