Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "string/camelcase/docs/types/index.d"

Index

Functions

Functions

Export assignment camelcase

  • camelcase(str: string): string
  • Converts a string to camel case.

    Parameters

    • str: string

      string to convert

    Returns string

    a camel-cased string

    Example

    var str = camelcase( 'Hello World!' );
    // returns 'helloWorld'

    Example

    var str = camelcase( 'foo_bar' );
    // returns 'fooBar'

    Example

    var str = camelcase( 'foo-bar' );
    // returns 'fooBar'