Options
All
  • Public
  • Public/Protected
  • All
Menu

Module camelCase

Index

References

Functions String

References

Renames and re-exports camelCase

String Functions

  • camelCase(s: string): string
  • Converts string to camel case.

    since

    5.5.0

    see

    lowerCase, kebabCase, snakeCase, startCase, upperCase, upperFirst

    example
    camelCase('Foo Bar')
    // => 'fooBar'

    camelCase('--foo-bar--')
    // => 'fooBar'

    camelCase('__FOO_BAR__')
    // => 'fooBar'

    Parameters

    • s: string

      The string to convert.

    Returns string

    Returns the camel cased string.