@goodnight-dev/utils
    Preparing search index...
    • Convert a string to camelCase. Any run of non-alphanumeric characters is a word boundary and is dropped from the output; word detection and casing are both Unicode-correct, not ASCII-only.

      Parameters

      • value: string

        The string to convert.

      Returns string

      The camelCase string. An empty string is returned unchanged.

      camelCase('hello world') // => 'helloWorld'
      camelCase('foo_bar') // => 'fooBar'
      camelCase('baz-qux') // => 'bazQux'
      camelCase(' leading and trailing ') // => 'leadingAndTrailing'
      camelCase('--multiple---separators--') // => 'multipleSeparators'
      camelCase('héllo wörld') // => 'hélloWörld'