Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment constantcase

  • constantcase(str: string): string
  • Converts a string to constant case.

    Parameters

    • str: string

      string to convert

    Returns string

    a constant-cased string

    Example

    var str = constantcase( 'beep' );
    // returns 'BEEP'

    Example

    var str = constantcase( 'beep boop' );
    // returns 'BEEP_BOOP'

    Example

    var str = constantcase( 'Hello World!' );
    // returns 'HELLO_WORLD'