Tweakr
    Preparing search index...

    Function camelCase

    • Converts a string to camelCase.

      Replaces spaces, hyphens, and underscores with camel casing. The first character of the resulting string is always lowercase.

      Parameters

      • str: string

        The input string to convert.

      Returns string

      The camelCase version of the input string.

      1.1.0

      camelCase('hello_world'); // 'helloWorld'
      camelCase('foo-bar-baz'); // 'fooBarBaz'
      camelCase('Make me camel'); // 'makeMeCamel'