Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment kebabcase

  • kebabcase(str: string): string
  • Converts a string to kebab case.

    Parameters

    • str: string

      string to convert

    Returns string

    a kebab-cased string

    Example

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

    Example

    var str = kebabcase( 'foo_bar' );
    // returns 'foo-bar'

    Example

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