@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function camelCase

    • Converts a string to camelCase. Handles snake_case, kebab-case, PascalCase, and space-separated words.

      Parameters

      • str: string

        The input string.

      Returns string

      camelCase("hello_world") // => "helloWorld"
      camelCase("foo-bar-baz") // => "fooBarBaz"
      camelCase("HelloWorld") // => "helloWorld"