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

    Function toCamelCase

    • Converts a given string to camelCase format.

      Parameters

      • text: string | undefined

        The input string to convert.

      Returns string

      The camelCase version of the input string, or an empty string if input is falsy.

      toCamelCase('Hello world');           // "helloWorld"
      toCamelCase(' foo_bar-baz '); // "fooBarBaz"
      toCamelCase('XMLHttpRequest'); // "xmlHttpRequest"
      toCamelCase(undefined); // ""