NewDash

    Function startCase

    • Converts string to start case.

      Parameters

      • s: string = ""

        The string to convert.

      Returns string

      Returns the start cased string.

      3.1.0

      camelCase, lowerCase, kebabCase, snakeCase, upperCase, upperFirst

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

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

      startCase('__FOO_BAR__')
      // => 'FOO BAR'
    MMNEPVFCICPMFPCPTTAAATR