Function default

  • Converts string to start case.

    Parameters

    • Optional string: any

      The string to convert.

      Optional

    Returns string

    Returns the start cased string.

    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'