Options
All
  • Public
  • Public/Protected
  • All
Menu

Module startCase

Index

Functions String

String Functions

  • default(string: any): string
  • Converts string to start case.

    since

    3.1.0

    see

    camelCase, lowerCase, kebabCase, snakeCase, upperCase, upperFirst

    example

    startCase('--foo-bar--') // => 'Foo Bar'

    startCase('fooBar') // => 'Foo Bar'

    startCase('FOO_BAR') // => 'FOO BAR'

    Parameters

    • string: any

    Returns string

    Returns the start cased string.